minify/Dockerfile

17 lines
296 B
Docker
Raw Normal View History

2022-04-28 00:48:21 +00:00
FROM node:alpine AS frontend-builder
2022-04-28 00:50:50 +00:00
ADD . .
2022-04-28 00:48:21 +00:00
RUN cd frontend && npm install && npm run build
FROM golang:alpine AS builder
2022-04-28 00:50:50 +00:00
ADD . .
2022-04-28 00:48:21 +00:00
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"]