mirror of
https://github.com/caprover/caprover
synced 2025-12-14 23:35:39 +00:00
Pushing edge to DockerHub
This commit is contained in:
@@ -39,14 +39,15 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
# export DOCKER_CLI_EXPERIMENTAL=enabled
|
export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||||
# docker buildx ls
|
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/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
|
||||||
docker push $IMAGE_NAME:$CAPROVER_VERSION
|
# docker push $IMAGE_NAME:$CAPROVER_VERSION
|
||||||
@@ -23,7 +23,8 @@ RUN npm ci --production && \
|
|||||||
# This quick hack invalidates the cache
|
# This quick hack invalidates the cache
|
||||||
ADD https://www.google.com /time.now
|
ADD https://www.google.com /time.now
|
||||||
|
|
||||||
RUN mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
|
RUN curl -Iv https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.1.0.tgz && \ # armV7 fails: https://github.com/yarnpkg/yarn/issues/5259 https://github.com/nodejs/docker-node/issues/1335
|
||||||
|
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 log --max-count=1 && \
|
git log --max-count=1 && \
|
||||||
|
|||||||
Reference in New Issue
Block a user