2021-09-09 17:11:55 +00:00
|
|
|
FROM node as jsbuild
|
|
|
|
|
2021-09-09 21:33:11 +00:00
|
|
|
ADD . /s3browser
|
|
|
|
WORKDIR /s3browser
|
2021-09-09 17:11:55 +00:00
|
|
|
|
2021-09-09 21:33:11 +00:00
|
|
|
RUN make build-web
|
2021-09-09 17:11:55 +00:00
|
|
|
|
|
|
|
FROM golang as gobuild
|
|
|
|
|
2021-09-09 21:33:11 +00:00
|
|
|
ADD . /s3browser
|
|
|
|
WORKDIR /s3browser
|
2021-09-09 17:11:55 +00:00
|
|
|
|
2021-11-22 01:26:27 +00:00
|
|
|
COPY --from=jsbuild /s3browser/s3browser-frontend/build/ /s3browser/s3browser-backend/internal/httpserver/static
|
2021-09-09 17:11:55 +00:00
|
|
|
|
2021-09-09 21:33:11 +00:00
|
|
|
RUN make build-backend
|
2021-09-09 17:11:55 +00:00
|
|
|
|
|
|
|
FROM gcr.io/distroless/base-debian10
|
|
|
|
|
2021-09-09 21:33:11 +00:00
|
|
|
COPY --from=gobuild /s3browser/s3browser /
|
|
|
|
|
|
|
|
EXPOSE 3000
|
2021-09-09 17:11:55 +00:00
|
|
|
|
2021-09-09 21:33:11 +00:00
|
|
|
CMD [ "/s3browser" ]
|