Skip to content

Commit

Permalink
🐞fix(M docs/Dockerfile)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiagw committed Jun 28, 2024
1 parent 5efa85a commit 92c12e5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ ARG IMAGE_NAME=ubuntu:22.04
## arch: arm64
# ARG IMAGE_NAME=arm64v8/ubuntu

FROM ${IMAGE_NAME}
FROM gcr.io/kaniko-project/executor:debug as builder

FROM ${IMAGE_NAME}
WORKDIR /runner

COPY . /runner/

RUN set -xe; \
# touch Dockerfile composer.json package.json pom.xml requirements.txt; \
COPY ./ /runner/
COPY --from=builder /kaniko/ /runner/bin/
RUN --mount=type=cache,target=/var/lib/apt/lists \
--mount=type=cache,target=/var/cache/apt \
set -xe; \
[ -d data ] || mkdir data; \
cp -vf conf/example-deploy.env data/deploy.env; \
sed -i -e '/=false/s/false/true/g' data/deploy.env; \
sed -i -e '/ENV_INSTALL_JMETER=/s/true/false/' -e '/ENV_INSTALL_DOCKER=/s/true/false/' -e '/ENV_INSTALL_PODMAN=/s/false/true/' data/deploy.env; \
cp -avf conf/deploy.env data/deploy.env; \
chmod +x deploy.sh; \
./deploy.sh --github-action
./deploy.sh --github-action

0 comments on commit 92c12e5

Please sign in to comment.