diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b18d543934065f39f446815423ceec36621dd708 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3.10-slim-bullseye + +# Uncomment the following command to install a Debian package +# RUN apt-get update \ +# && apt-get install -y xxx \ +# && rm -rf /var/lib/apt/lists/* + +# Env variables that configure Python to run in a container: +# do not keep dependencies downloaded by "pip install" +ENV PIP_NO_CACHE_DIR=1 +# do not write "*.pyc" files +ENV PYTHONDONTWRITEBYTECODE=1 +# do not buffer input/output operations, displaying prints and log messages immediately +ENV PYTHONUNBUFFERED=1 + +WORKDIR /app + +COPY requirements.txt . +RUN pip install -r requirements.txt + +COPY . .