20 lines
358 B
Docker
20 lines
358 B
Docker
FROM python:3.9-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
ENV TZ=Europe/Warsaw
|
|
ENV PORT=8000
|
|
|
|
RUN python -m venv .venv \
|
|
&& .venv/bin/pip install --upgrade pip
|
|
|
|
COPY ./requirements.txt .
|
|
RUN .venv/bin/pip install --no-cache-dir -r requirements.txt
|
|
RUN .venv/bin/pip install --no-cache-dir lxml
|
|
|
|
COPY . .
|
|
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|