s3browser/Dockerfile

24 lines
395 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/httpserver/static
RUN make build-backend
FROM gcr.io/distroless/base-debian10
COPY --from=gobuild /s3browser/s3browser /
EXPOSE 3000
CMD [ "/s3browser" ]