s3browser/Dockerfile
2021-09-09 23:33:11 +02:00

24 lines
383 B
Docker

FROM node as jsbuild
ADD . /s3browser
WORKDIR /s3browser
RUN make build-web
FROM golang as gobuild
ADD . /s3browser
WORKDIR /s3browser
COPY --from=jsbuild /s3browser/s3browser-frontend/build /s3browser/s3browser-backend/internal/static
RUN make build-backend
FROM gcr.io/distroless/base-debian10
COPY --from=gobuild /s3browser/s3browser /
EXPOSE 3000
CMD [ "/s3browser" ]