minify/Dockerfile

15 lines
280 B
Docker
Raw Normal View History

2022-04-28 00:48:21 +00:00
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"]