-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26f2e7a
commit 3764631
Showing
2 changed files
with
13 additions
and
8 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,10 +1,14 @@ | ||
FROM python:3.11-slim AS base | ||
|
||
COPY requirements.txt / | ||
RUN pip install --no-cache-dir -r /requirements.txt | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
ADD . /app | ||
COPY requirements.txt . | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y \ | ||
libcairo2 \ | ||
libcairo2-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* \ | ||
&& pip install --no-cache-dir -r requirements.txt | ||
|
||
CMD python main.py | ||
COPY . . | ||
CMD ["python", "main.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