quickshare/Dockerfile
Hexxa b0d1cdccfc
fix(docker): add dockfile and small fixes (#38)
* fix(docker): add dockfile and small fixes

* chore(readme): small fixes
2021-02-01 21:36:56 +08:00

16 lines
516 B
Docker

FROM golang:1.15 as build-be
ADD . /quickshare
WORKDIR /quickshare
RUN /quickshare/scripts/build_be_docker.sh
FROM node as build-fe
COPY --from=build-be /quickshare /quickshare
WORKDIR /quickshare
RUN yarn install \
&& yarn --cwd "src/client/web" run build \
&& cp -R /quickshare/public /quickshare/dist/quickshare
FROM gcr.io/distroless/base-debian10
COPY --from=build-fe /quickshare/dist/quickshare /quickshare
ADD configs/docker.yml /quickshare
CMD ["/quickshare/start", "-c", "/quickshare/docker.yml"]