From e69afcc59acf36d022709e96b7544736610266ad Mon Sep 17 00:00:00 2001 From: dbnomics-fetcher-ops <dbnomics-fetcher-ops@localhost> Date: Tue, 4 Feb 2025 10:04:37 +0000 Subject: [PATCH] Add Dockerfile from template found in pipeline configuration YAML file --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b18d543 --- /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 . . -- GitLab