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
33
33
exit 1
34
34
fi
35
35
36
+ # # Building frontend app
36
37
ORIG_DIR=$( pwd)
37
38
FRONTEND_DIR=/home/runner/app-frontend
38
39
curl -Iv https://registry.yarnpkg.com/
@@ -44,15 +45,9 @@ yarn install --no-cache --frozen-lockfile --network-timeout 600000
44
45
echo " Installation finished"
45
46
yarn run build
46
47
echo " Building finished"
47
-
48
48
cd $ORIG_DIR
49
-
50
49
mv $FRONTEND_DIR /caprover-frontend/build ./dist-frontend
51
50
52
- ls -lah ./dist-frontend
53
-
54
- exit 0
55
-
56
51
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
57
52
export DOCKER_CLI_EXPERIMENTAL=enabled
58
53
docker buildx ls
Original file line number Diff line number Diff line change @@ -15,25 +15,9 @@ RUN npm ci && \
15
15
mv ./edge-override.json ./config-override.json
16
16
17
17
18
- # Build frontend code.
19
-
20
18
# This quick hack invalidates the cache.
21
19
ADD https://www.google.com /time.now
22
20
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
-
37
21
ENV NODE_ENV production
38
22
ENV PORT 3000
39
23
EXPOSE 3000
You can’t perform that action at this time.
0 commit comments