added docker stuff

This commit is contained in:
2022-05-17 01:56:05 +02:00
parent 9eb68a1d7e
commit 63bbd4610f
3 changed files with 40 additions and 0 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM node as jsbuild
ADD . /app
WORKDIR /app
RUN make deps && make js
FROM golang as gobuild
ADD . /app
WORKDIR /app
RUN make go
FROM gcr.io/distroless/base-debian10
COPY --from=gobuild /app/build/s3share /app/s3share
COPY --from=jsbuild /app/build/public /app/public
ENTRYPOINT [ "/app/s3share" ]