Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Albert 9b43d41040 Remove fixed PUBLIC_URL in Dockerfile
Change-Id: Ifb2e41f02f6568fd80fe9de4c76b633236ceffe4
2023-02-03 22:17:08 +01:00
Michael Albert 3276a9b6ed Raise yarn install timeout limit to avoid build errors
@mui/icons-material needs much time to install, raises the overall yarn install time and causes a timeout error

Change-Id: I0327c6e0523528fb08da7e4b993fb53e9e070305
2023-01-27 08:34:24 +01:00
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -1,14 +1,13 @@
# Builder
FROM node:lts as builder
ARG PUBLIC_URL=/
ARG REACT_APP_SERVER
WORKDIR /src
COPY . /src
RUN yarn --network-timeout=100000 install
RUN PUBLIC_URL=$PUBLIC_URL REACT_APP_SERVER=$REACT_APP_SERVER yarn build
RUN yarn --network-timeout=300000 install
RUN REACT_APP_SERVER=$REACT_APP_SERVER yarn build
# App
+1 -1
View File
@@ -16,7 +16,7 @@ services:
# if you're building on an architecture other than amd64, make sure
# to define a maximum ram for node. otherwise the build will fail.
# - NODE_OPTIONS="--max_old_space_size=1024"
# default is /
# default is .
# - PUBLIC_URL=/synapse-admin
# You can use a fixed homeserver, so that the user can no longer
# define it himself