16 lines
322 B
Docker
16 lines
322 B
Docker
FROM python:3.11.4-slim-buster
|
|
|
|
# python related environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
WORKDIR /app
|
|
|
|
# install python dependencies
|
|
COPY requirements.txt /app/
|
|
RUN pip install --upgrade pip
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /app/
|
|
|
|
CMD ["python", "src/main.py"] |