mirror of
https://github.com/caprover/caprover
synced 2025-12-12 22:35:39 +00:00
Pushing edge to DockerHub
This commit is contained in:
@@ -45,8 +45,8 @@ docker buildx ls
|
|||||||
docker buildx create --name mybuilder
|
docker buildx create --name mybuilder
|
||||||
docker buildx use 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/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/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 build -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge .
|
||||||
# docker push $IMAGE_NAME:latest
|
# docker push $IMAGE_NAME:latest
|
||||||
|
|||||||
@@ -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 && \
|
git clone https://github.com/githubsaturn/caprover-frontend.git && \
|
||||||
cd caprover-frontend && \
|
cd caprover-frontend && \
|
||||||
git log --max-count=1 && \
|
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" && \
|
yarn run build && echo "Building finished" && \
|
||||||
mv ./build ../../app/dist-frontend && \
|
mv ./build ../../app/dist-frontend && \
|
||||||
cd / && \
|
cd / && \
|
||||||
|
|||||||
@@ -17,11 +17,13 @@ RUN npm ci --production && \
|
|||||||
|
|
||||||
ENV FRONTEND_COMMIT_HASH c28107f530ef23a87aee503cc2ac815a822edeee
|
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 && \
|
git clone https://github.com/githubsaturn/caprover-frontend.git && \
|
||||||
cd caprover-frontend && \
|
cd caprover-frontend && \
|
||||||
git reset --hard ${FRONTEND_COMMIT_HASH} && \
|
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" && \
|
yarn run build && echo "Building finished" && \
|
||||||
mv ./build ../../app/dist-frontend && \
|
mv ./build ../../app/dist-frontend && \
|
||||||
cd / && \
|
cd / && \
|
||||||
|
|||||||
Reference in New Issue
Block a user