Skip to content

Commit 1635996

Browse files
committed
Reduce size of container image
1 parent d90791f commit 1635996

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
3030
- name: Export tgz
3131
run: |
32-
docker save ghcr.io/${{ github.repository }}:latest > gitpod-eks-guide.tar
32+
docker save ghcr.io/${{ github.repository }}:latest | gzip > gitpod-eks-guide.tgz
3333
3434
- name: Release
3535
uses: ncipollo/release-action@v1
3636
if: startsWith(github.ref, 'refs/tags/')
3737
with:
38-
artifacts: gitpod-eks-guide.tar
38+
artifacts: gitpod-eks-guide.tgz
3939
allowUpdates: true
4040
artifactErrorsFailBuild: true
4141
token: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ WORKDIR /gitpod
3131
COPY package.json /gitpod/
3232
COPY yarn.lock /gitpod/
3333

34-
RUN yarn --pure-lockfile --non-interactive
34+
RUN yarn --pure-lockfile --non-interactive \
35+
&& rm -rf /usr/local/share/.cache/yarn
3536

36-
RUN yarn global add aws-cdk npx
37+
RUN yarn global add aws-cdk npx \
38+
&& rm -rf /usr/local/share/.cache/yarn
3739

3840
COPY . /gitpod
3941

0 commit comments

Comments
 (0)