deployment stuff
[edumed.git] / Dockerfile
index 2ee1cce..cf8de3c 100644 (file)
@@ -1,4 +1,4 @@
-FROM python:2.7 AS base
+FROM turicas/python:2.7-slim-bookworm AS base
 
 RUN apt-get update && apt-get install -y \
     libxslt-dev libxml2-dev build-essential \
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \
 COPY requirements.txt requirements.txt
 RUN pip install --no-cache-dir -r requirements.txt
 
-WORKDIR /app
+WORKDIR /app/src
 
 
 FROM base AS dev
@@ -23,4 +23,4 @@ FROM base AS prod
 
 RUN pip install --no-cache-dir gunicorn psycopg2-binary
 
-COPY . /app
+COPY src /app/src/