minify/Dockerfile
Tyler d3b03f3c45
Some checks failed
continuous-integration/drone/push Build is failing
Add files to build containers
2022-04-27 20:50:50 -04:00

17 lines
296 B
Docker

FROM node:alpine AS frontend-builder
ADD . .
RUN cd frontend && npm install && npm run build
FROM golang:alpine AS builder
ADD . .
COPY --from=frontend-builder frontend/dist frontend/dist
RUN go build -o minify
FROM alpine
COPY --from=builder minify /usr/bin/minify
CMD ["/usr/bin/minify"]