Pushing edge to DockerHub

This commit is contained in:
Kasra Bigdeli
2021-08-07 16:43:52 -07:00
parent b52834f393
commit 09a610e128
3 changed files with 7 additions and 5 deletions

View File

@@ -45,8 +45,8 @@ docker buildx ls
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx build --platform linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
# docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
# docker buildx build --platform linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
# docker build -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge .
# docker push $IMAGE_NAME:latest

View File

@@ -29,7 +29,7 @@ RUN curl -Iv https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.1.
git clone https://github.com/githubsaturn/caprover-frontend.git && \
cd caprover-frontend && \
git log --max-count=1 && \
yarn install --no-cache --frozen-lockfile --production && echo "Installation finished" && \
yarn install --no-cache --frozen-lockfile --production --network-timeout 600000 && echo "Installation finished" && \
yarn run build && echo "Building finished" && \
mv ./build ../../app/dist-frontend && \
cd / && \

View File

@@ -17,11 +17,13 @@ RUN npm ci --production && \
ENV FRONTEND_COMMIT_HASH c28107f530ef23a87aee503cc2ac815a822edeee
RUN mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
# armV7 fails: https://github.com/yarnpkg/yarn/issues/5259 https://github.com/nodejs/docker-node/issues/1335
RUN curl -Iv https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.1.0.tgz && \
mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
git clone https://github.com/githubsaturn/caprover-frontend.git && \
cd caprover-frontend && \
git reset --hard ${FRONTEND_COMMIT_HASH} && \
yarn install --no-cache --frozen-lockfile --production && echo "Installation finished" && \
yarn install --no-cache --frozen-lockfile --production --network-timeout 600000 && echo "Installation finished" && \
yarn run build && echo "Building finished" && \
mv ./build ../../app/dist-frontend && \
cd / && \