minify/Dockerfile
Tyler 36bef50801
Some checks failed
continuous-integration/drone/push Build is failing
Add git to build for Go
2022-04-27 20:54:14 -04:00

18 lines
346 B
Docker

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