-
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
Rick
committed
Jun 18, 2024
1 parent
3212b28
commit 172db9a
Showing
3 changed files
with
12 additions
and
349 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,15 +1,23 @@ | ||
ARG PYTHON_VERSION=3.11 | ||
FROM python:${PYTHON_VERSION}-alpine | ||
FROM python:${PYTHON_VERSION}-alpine as builder | ||
|
||
RUN apk add libxml2-dev libxslt-dev cargo | ||
|
||
WORKDIR /app | ||
COPY ./requirements.txt /tmp/ | ||
COPY ./app ./ | ||
COPY ./requirements.txt ./ | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
FROM python:${PYTHON_VERSION}-alpine | ||
|
||
RUN pip install -r /tmp/requirements.txt | ||
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages | ||
|
||
WORKDIR /app | ||
COPY ./app ./ | ||
|
||
ENV TZ=Europe/Amsterdam | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
EXPOSE 5000 | ||
|
||
CMD ["python","./index.py"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.