15 lines
280 B
Docker
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"] |