minify/Dockerfile
2022-04-27 20:48:21 -04:00

15 lines
280 B
Docker

FROM node:alpine AS frontend-builder
RUN cd frontend && npm install && npm run build
FROM golang:alpine AS builder
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"]