Skip to content

Commit 71b4697

Browse files
committed
Use alpine linux for base image in Dockerfile
1 parent 866a084 commit 71b4697

File tree

2 files changed

+35
-33
lines changed

2 files changed

+35
-33
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
docker-dockerhub-build-and-push:
6161
name: Docker build and push (hub.docker.com)
6262
runs-on: ubuntu-latest
63-
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
63+
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
6464
steps:
6565
- name: Checkout
6666
uses: actions/checkout@v4
@@ -89,26 +89,27 @@ jobs:
8989
push: true
9090
tags: |
9191
${{ env.DOCKERHUB_LATEST_TAG }}
92-
mansuf/mangadex-downloader:${{ github.ref_name }}
93-
94-
- name: Build and push (with optional dependencies)
95-
uses: docker/build-push-action@v5
96-
with:
97-
context: .
98-
file: Dockerfile.optional
99-
platforms: |
100-
linux/amd64
101-
linux/arm64
102-
linux/arm/v7
103-
push: true
104-
tags: |
105-
${{ env.DOCKERHUB_LATEST_OPTIONAL_TAG }}
106-
mansuf/mangadex-downloader:${{ github.ref_name }}-optional
92+
93+
# mansuf/mangadex-downloader:${{ github.ref_name }}
94+
95+
# - name: Build and push (with optional dependencies)
96+
# uses: docker/build-push-action@v5
97+
# with:
98+
# context: .
99+
# file: Dockerfile.optional
100+
# platforms: |
101+
# linux/amd64
102+
# linux/arm64
103+
# linux/arm/v7
104+
# push: true
105+
# tags: |
106+
# ${{ env.DOCKERHUB_LATEST_OPTIONAL_TAG }}
107+
# mansuf/mangadex-downloader:${{ github.ref_name }}-optional
107108

108109
docker-aws-ecr-build-and-push:
109110
name: Docker build and push (public.ecr.aws)
110111
runs-on: ubuntu-latest
111-
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
112+
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
112113
steps:
113114
- name: Checkout
114115
uses: actions/checkout@v4
@@ -138,21 +139,22 @@ jobs:
138139
push: true
139140
tags: |
140141
${{ env.AWS_ECR_LATEST_TAG }}
141-
public.ecr.aws/n3n5b0s8/mansuf/mangadex-downloader:${{ github.ref_name }}
142-
143-
- name: Build and push (with optional dependencies)
144-
uses: docker/build-push-action@v5
145-
with:
146-
context: .
147-
file: Dockerfile.optional
148-
platforms: |
149-
linux/amd64
150-
linux/arm64
151-
linux/arm/v7
152-
push: true
153-
tags: |
154-
${{ env.AWS_ECR_LATEST_OPTIONAL_TAG }}
155-
public.ecr.aws/n3n5b0s8/mansuf/mangadex-downloader:${{ github.ref_name }}-optional
142+
143+
# public.ecr.aws/n3n5b0s8/mansuf/mangadex-downloader:${{ github.ref_name }}
144+
145+
# - name: Build and push (with optional dependencies)
146+
# uses: docker/build-push-action@v5
147+
# with:
148+
# context: .
149+
# file: Dockerfile.optional
150+
# platforms: |
151+
# linux/amd64
152+
# linux/arm64
153+
# linux/arm/v7
154+
# push: true
155+
# tags: |
156+
# ${{ env.AWS_ECR_LATEST_OPTIONAL_TAG }}
157+
# public.ecr.aws/n3n5b0s8/mansuf/mangadex-downloader:${{ github.ref_name }}-optional
156158

157159
windows-build:
158160
name: Build app & docs (Windows)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11
1+
FROM python:3.11-alpine
22

33
COPY . /app
44
WORKDIR /app

0 commit comments

Comments
 (0)