Skip to content

Commit bae1683

Browse files
committed
Fixing edge
1 parent 9d9860c commit bae1683

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

dev-scripts/build_and_push_edge.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ if [[ "$BRANCH" != "master" ]]; then
3333
exit 1
3434
fi
3535

36+
## Building frontend app
3637
ORIG_DIR=$(pwd)
3738
FRONTEND_DIR=/home/runner/app-frontend
3839
curl -Iv https://registry.yarnpkg.com/
@@ -44,15 +45,9 @@ yarn install --no-cache --frozen-lockfile --network-timeout 600000
4445
echo "Installation finished"
4546
yarn run build
4647
echo "Building finished"
47-
4848
cd $ORIG_DIR
49-
5049
mv $FRONTEND_DIR/caprover-frontend/build ./dist-frontend
5150

52-
ls -lah ./dist-frontend
53-
54-
exit 0
55-
5651
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
5752
export DOCKER_CLI_EXPERIMENTAL=enabled
5853
docker buildx ls

dockerfile-captain.edge

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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.
2119
ADD 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-
3721
ENV NODE_ENV production
3822
ENV PORT 3000
3923
EXPOSE 3000

0 commit comments

Comments
 (0)