Skip to content

Commit

Permalink
Optimize images (#74)
Browse files Browse the repository at this point in the history
* Optimize linux-slim image

* Fix lint

* Optimize windows image

---------

Co-authored-by: Fedor Batonogov <[email protected]>
  • Loading branch information
github-actions[bot] and batonogov authored Mar 23, 2024
1 parent f5eff36 commit 5db9b1f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-linux-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Docker Image CI Linux ghcr.io

on:
push:
tags:
tags:
- "v*.*.*"
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image CI Linux docker.io

on:
push:
tags:
tags:
- "v*.*.*"
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-osx-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Docker Image CI OSX ghcr.io

on:
push:
tags:
tags:
- "v*.*.*"
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image CI OSX docker.io

on:
push:
tags:
tags:
- "v*.*.*"
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-windows-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Docker Image CI Windows ghcr.io

on:
push:
tags:
tags:
- "v*.*.*"
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image CI Windows docker.io

on:
push:
tags:
tags:
- "v*.*.*"
branches:
- "main"
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile-py3-linux-slim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ RUN apt update \
binutils \
gcc \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& apt clean \
&& rm -rf \
/var/lib/apt/lists/* \
/var/cache/* \
&& pip3 install \
pyinstaller==$PYINSTALLER_VERSION \
&& pip3 cache purge \
Expand Down
17 changes: 14 additions & 3 deletions Dockerfile-py3-windows
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,24 @@ ARG PYINSTALLER_VERSION=6.5.0
RUN set -x \
&& dpkg --add-architecture i386 \
&& apt update -qy \
&& apt install --no-install-recommends -qfy apt-transport-https software-properties-common wget gpg-agent rename \
&& apt install --no-install-recommends -qfy \
apt-transport-https \
software-properties-common \
wget \
gpg-agent \
rename \
&& wget -nv https://dl.winehq.org/wine-builds/winehq.key \
&& apt-key add winehq.key \
&& add-apt-repository 'https://dl.winehq.org/wine-builds/ubuntu/' \
&& apt update -qy \
&& apt install --no-install-recommends -qfy $WINE_VERSION winbind cabextract \
&& rm -rf /var/lib/apt/lists/* \
&& apt install --no-install-recommends -qfy \
$WINE_VERSION \
winbind \
cabextract \
&& apt clean \
&& rm -rf \
/var/lib/apt/lists/* \
/var/cache/* \
&& wget -nv https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x winetricks \
&& mv winetricks /usr/local/bin
Expand Down

0 comments on commit 5db9b1f

Please sign in to comment.