1
0
Fork 0
upl/Dockerfile

26 lines
425 B
Docker

FROM node:16-alpine3.13 as build-web
WORKDIR /src
COPY . .
RUN cd web && npm install
ARG NODE_ENV=production
RUN cd web && npm run build
FROM golang:1.16-alpine3.13 as build
RUN apk add \
make
WORKDIR /src
COPY --from=build-web . .
ARG CGO_ENABLED=0
RUN make TAGS=production
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build upl /upl
RUN ["/upl"]