File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ if [[ "$BRANCH" != "master" ]]; then
3333 exit 1
3434fi
3535
36+ # # Building frontend app
3637ORIG_DIR=$( pwd)
3738FRONTEND_DIR=/home/runner/app-frontend
3839curl -Iv https://registry.yarnpkg.com/
@@ -44,15 +45,9 @@ yarn install --no-cache --frozen-lockfile --network-timeout 600000
4445echo " Installation finished"
4546yarn run build
4647echo " Building finished"
47-
4848cd $ORIG_DIR
49-
5049mv $FRONTEND_DIR /caprover-frontend/build ./dist-frontend
5150
52- ls -lah ./dist-frontend
53-
54- exit 0
55-
5651docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
5752export DOCKER_CLI_EXPERIMENTAL=enabled
5853docker buildx ls
Original file line number Diff line number Diff line change @@ -15,25 +15,9 @@ RUN npm ci && \
1515 mv ./edge-override.json ./config-override.json
1616
1717
18- # Build frontend code.
19-
2018 # This quick hack invalidates the cache.
2119ADD https://www.google.com /time.now
2220
23-
24- # armV7 fails: https://github.com/yarnpkg/yarn/issues/5259 https://github.com/nodejs/docker-node/issues/1335
25- # RUN curl -Iv https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.1.0.tgz && \
26- RUN curl -Iv https://registry.yarnpkg.com/ && \
27- mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
28- git clone https://github.com/githubsaturn/caprover-frontend.git && \
29- cd caprover-frontend && \
30- git log --max-count=1 && \
31- yarn install --no-cache --frozen-lockfile --network-timeout 600000 && echo "Installation finished" && \
32- yarn run build && echo "Building finished" && \
33- mv ./build ../../app/dist-frontend && \
34- cd / && \
35- rm -rf /usr/src/app-frontend
36-
3721ENV NODE_ENV production
3822ENV PORT 3000
3923EXPOSE 3000
You can’t perform that action at this time.
0 commit comments