X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..4404b2cfea2aafb2a18d859bc6030cbcbec316f1:/Dockerfile diff --git a/Dockerfile b/Dockerfile index 2ee1cce..cf8de3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/