minify/Dockerfile
Tyler 42bd753900
Some checks failed
continuous-integration/drone/push Build is failing
Change path to exist outside gopath
2022-04-27 20:52:28 -04:00

17 lines
319 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 cd /app && go build -o minify
FROM alpine
COPY --from=builder minify /usr/bin/minify
CMD ["/usr/bin/minify"]