-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from J-A-A-M/docker-opt
Docker optimization
- Loading branch information
Showing
25 changed files
with
645 additions
and
605 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
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,5 +1,5 @@ | ||
FROM python:3.10.6 | ||
ADD alerts.py . | ||
ADD requirements.txt . | ||
RUN pip install -r requirements.txt --no-cache-dir && rm -f requirements.txt | ||
FROM python:3.12-slim | ||
COPY alerts.py . | ||
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | ||
python -m pip install --no-cache-dir -r /tmp/requirements.txt | ||
CMD python alerts.py |
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
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,2 +1,2 @@ | ||
aiohttp==3.9.2 | ||
aiohttp==3.9.3 | ||
aiomcache==0.8.1 |
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,5 +1,5 @@ | ||
FROM python:3.10.6 | ||
ADD check.py . | ||
ADD requirements.txt . | ||
RUN pip install -r requirements.txt --no-cache-dir && rm -f requirements.txt | ||
FROM python:3.12-slim | ||
COPY check.py . | ||
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | ||
python -m pip install --no-cache-dir -r /tmp/requirements.txt | ||
CMD python check.py |
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
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,2 +1,2 @@ | ||
aiohttp==3.9.2 | ||
aiohttp==3.9.3 | ||
aiomcache==0.8.1 |
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,5 +1,5 @@ | ||
FROM python:3.10.6 | ||
ADD explosions.py . | ||
ADD requirements.txt . | ||
RUN pip install -r requirements.txt --no-cache-dir && rm -f requirements.txt | ||
FROM python:3.12-slim | ||
COPY explosions.py . | ||
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | ||
python -m pip install --no-cache-dir -r /tmp/requirements.txt | ||
CMD python explosions.py |
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
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,2 +1,2 @@ | ||
aiohttp==3.9.2 | ||
aiohttp==3.9.3 | ||
aiomcache==0.8.1 |
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,5 +1,5 @@ | ||
FROM python:3.10.6 | ||
ADD svg_generator.py . | ||
ADD requirements.txt . | ||
RUN pip install -r requirements.txt --no-cache-dir && rm -f requirements.txt | ||
FROM python:3.12-bullseye | ||
COPY svg_generator.py . | ||
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | ||
python -m pip install --no-cache-dir -r /tmp/requirements.txt | ||
CMD python svg_generator.py |
Oops, something went wrong.