2022-05-16 23:56:05 +00:00
|
|
|
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
|
|
|
|
|
2022-06-08 10:38:45 +00:00
|
|
|
EXPOSE 3000
|
|
|
|
|
2022-05-16 23:56:05 +00:00
|
|
|
ENTRYPOINT [ "/app/s3share" ]
|