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" ]