mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-11-22 08:31:36 +00:00
Migrate to yarn v4
Use yarn PnP which forces us to install some more explicit dependencies. Change-Id: Ib35c5c71a37081c98778937bde5a23bf997dd54c
This commit is contained in:
parent
630e809e78
commit
5d1e43611c
26 changed files with 11379 additions and 6654 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -4,10 +4,16 @@ LABEL org.opencontainers.image.url=https://github.com/Awesome-Technologies/synap
|
|||
|
||||
WORKDIR /src
|
||||
|
||||
COPY . /src
|
||||
RUN yarn --network-timeout=300000 install --immutable
|
||||
RUN yarn build
|
||||
# Copy .yarn directory to the working directory (must be on a separate line!)
|
||||
# Use https://docs.docker.com/engine/reference/builder/#copy---parents when available
|
||||
COPY .yarn .yarn
|
||||
COPY package.json .yarnrc.yml yarn.lock ./
|
||||
|
||||
# Disable telemetry and install packages
|
||||
RUN yarn config set enableTelemetry 0 && yarn install --immutable --network-timeout=300000
|
||||
|
||||
COPY . /src
|
||||
RUN yarn build
|
||||
|
||||
# App
|
||||
FROM nginx:stable-alpine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue