-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase image on openSUSE Tumbleweed to avoid PyPi packages
- Loading branch information
1 parent
5171443
commit 3017e7b
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
FROM python:3.12-alpine | ||
FROM registry.opensuse.org/opensuse/bci/python:3.11 | ||
|
||
COPY requirements.txt / | ||
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 && \ | ||
zypper -n install \ | ||
python3-apache-libcloud \ | ||
python3-cachetools \ | ||
python3-cryptography \ | ||
python3-Jinja2 \ | ||
python3-pyramid \ | ||
python3-python-dateutil \ | ||
python3-pytz \ | ||
python311-PyYAML && \ | ||
zypper clean -a | ||
|
||
RUN apk --no-cache add tzdata && \ | ||
pip install --no-cache-dir -r /requirements.txt | ||
ENV REQUESTS_CA_BUNDLE=/etc/ssl/ca-bundle.pem | ||
|
||
COPY cloudview/ /cloudview | ||
|
||
ENTRYPOINT ["/usr/local/bin/python3", "-m", "cloudview.cloudview"] | ||
|
||
CMD [] | ||
ENTRYPOINT ["/usr/bin/python3", "-m", "cloudview.cloudview"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.12-alpine | ||
|
||
COPY requirements.txt / | ||
|
||
RUN apk --no-cache add tzdata && \ | ||
pip install --no-cache-dir -r /requirements.txt | ||
|
||
COPY cloudview/ /cloudview | ||
|
||
ENTRYPOINT ["/usr/local/bin/python3", "-m", "cloudview.cloudview"] | ||
|
||
CMD [] |