Skip to content

Commit

Permalink
Add Dockerfile.alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Sep 9, 2023
1 parent 360bf2d commit 21b64fd
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.alpine
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }} , ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!BuildTag: bugme
#!UseOBSRepositories
FROM registry.opensuse.org/opensuse/bci/python:3.11
FROM opensuse/bci/python:3.11

RUN zypper addrepo https://download.opensuse.org/repositories/SUSE:/CA/openSUSE_Tumbleweed/SUSE:CA.repo && \
zypper --gpg-auto-import-keys -n install ca-certificates-suse \
Expand Down
14 changes: 14 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.11-alpine

COPY SUSE_Trust_Root.crt /usr/local/share/ca-certificates/

COPY requirements.txt /tmp

RUN pip install --no-cache-dir -r /tmp/requirements.txt && \
update-ca-certificates

COPY bugme.py /

ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

ENTRYPOINT ["/usr/local/bin/python3", "/bugme.py"]
39 changes: 39 additions & 0 deletions SUSE_Trust_Root.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-----BEGIN CERTIFICATE-----
MIIG6DCCBNCgAwIBAgIBATANBgkqhkiG9w0BAQsFADCBqDELMAkGA1UEBhMCREUx
EjAQBgNVBAgTCUZyYW5jb25pYTESMBAGA1UEBxMJTnVyZW1iZXJnMSEwHwYDVQQK
ExhTVVNFIExpbnV4IFByb2R1Y3RzIEdtYkgxFTATBgNVB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