Browse Source

fix: Build client in dockerfile

webhook
Dale 3 weeks ago
parent
commit
adcf5f2b61
Signed by: Deiru GPG Key ID: AA250C0277B927E1
  1. 2
      backend.Dockerfile

2
backend.Dockerfile

@ -4,6 +4,8 @@ RUN apk add --no-cache python g++ make
WORKDIR /app
COPY . .
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn build:server
COPY ./src/server/graphql/schema dist/server/graphql
EXPOSE 4000
CMD yarn run:server /conf/config.json
Loading…
Cancel
Save