added dockerfile

This commit is contained in:
2021-09-09 19:11:55 +02:00
parent f2c8be33da
commit e582c8e483
3 changed files with 57 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM node as jsbuild
ADD s3browser-frontend /s3browser-frontend
WORKDIR /s3browser-frontend
RUN yarn install
RUN yarn run build
FROM golang as gobuild
ADD s3browser-backend /s3browser-backend
WORKDIR /s3browser-backend
COPY --from=jsbuild /s3browser-frontend/build /s3browser-backend/internal/static
RUN go build -o s3browser -tags prod ./cmd/s3Browser.go
FROM gcr.io/distroless/base-debian10
COPY --from=gobuild /s3browser-backend/s3browser /
CMD [ "/s3browser" ]