Skip to content

Commit

Permalink
Update Dockerfile to use Python 3.10.13-slim and add build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fvergaracl committed Feb 7, 2024
1 parent 9f4af50 commit 79437a9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim-buster as builder
FROM python:3.10.13-slim as builder
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
RUN apt-get update
Expand All @@ -15,11 +15,12 @@ ENV PYTHONPATH=/app
FROM builder as dev
RUN poetry install --no-root
# FOR DATABASE DIAGRAM GENERATION
RUN apt-get update \
&& apt-get install -y --no-install-recommends graphviz \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
CMD ["bash", "./start-dev.sh"]

FROM builder as prod
RUN poetry install --no-root --no-dev
RUN poetry install --no-root --no-dev --no-cache
CMD ["bash", "./start-prod.sh"]

0 comments on commit 79437a9

Please sign in to comment.