Skip to content

Commit

Permalink
Split layers
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py committed Jul 25, 2023
1 parent 0fa6196 commit a0e0be8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ RUN apt-get -qq update \
unzip \
openjdk-11-jdk \
maven \
&& curl -fsSL https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -o /tmp/packages-microsoft-prod.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -o /tmp/packages-microsoft-prod.deb \
&& dpkg -i /tmp/packages-microsoft-prod.deb \
&& rm /tmp/packages-microsoft-prod.deb \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
Expand Down
5 changes: 2 additions & 3 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- name: 'gcr.io/kaniko-project/executor:v1.12.1'
- name: 'gcr.io/kaniko-project/executor:v1.5.1'
args:
- '--cache=true'
- '--use-new-run'
Expand All @@ -9,10 +9,9 @@ steps:
- '-f'
- 'builder.dockerfile'
- name: 'us.gcr.io/$PROJECT_ID/craft:builder-$COMMIT_SHA'
- name: 'gcr.io/kaniko-project/executor:v1.12.1'
- name: 'gcr.io/kaniko-project/executor:v1.5.1'
args:
- '--cache=true'
- '--compressed-caching=false'
- '--use-new-run'
- '--build-arg'
- 'SOURCE_COMMIT=$COMMIT_SHA'
Expand Down

0 comments on commit a0e0be8

Please sign in to comment.