fix(cicd): refactor scripts for cicd

This commit is contained in:
hexxa 2021-09-14 16:24:14 +08:00 committed by Hexxa
parent c897adc6ea
commit 2dc156cd95
11 changed files with 26 additions and 66 deletions

View file

@ -1,13 +1,12 @@
FROM golang:1.15 as build-be
ADD . /quickshare
WORKDIR /quickshare
RUN /quickshare/scripts/build_be_docker.sh
RUN /quickshare/scripts/build_exec.sh
FROM node as build-fe
COPY --from=build-be /quickshare /quickshare
WORKDIR /quickshare
RUN yarn install \
&& yarn --cwd "src/client/web" run build \
RUN yarn run build:fe \
&& cp -R /quickshare/public /quickshare/dist/quickshare
FROM debian:stable-slim