Skip to content

Commit

Permalink
Dockerfile & requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Oct 29, 2024
1 parent 17df819 commit 2b03059
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --- Stage 0 --- #
# This first stage is responsible for installing any dependencies the app needs
# to run, and updating any base dependencies.
FROM ubuntu:22.04 AS stage_0
FROM ubuntu:24.04 AS stage_0

RUN groupadd -g 5000 sync-engine \
&& useradd -d /home/sync-engine -m -u 5000 -g 5000 sync-engine
Expand All @@ -24,7 +24,7 @@ RUN echo $BUILD_WEEK && apt-get update \
gpg \
gpg-agent \
dirmngr \
python3.10 \
python3.12 \
gettext-base \
libmysqlclient21 \
mysql-client \
Expand Down Expand Up @@ -54,16 +54,16 @@ RUN apt-get update \
gcc \
git \
pkg-config \
python3.10-dev \
python3.12-dev \
python3.12-venv \
python3-pip \
libmysqlclient-dev \
&& rm -rf /var/lib/apt/lists/*

COPY /requirements/ /requirements/
RUN python3.10 -m pip install pip==24.3.1 virtualenv==20.27.0 && \
python3.10 -m virtualenv /opt/venv && \
/opt/venv/bin/python3.10 -m pip install --no-cache --no-deps -r /requirements/prod.txt -r /requirements/test.txt && \
/opt/venv/bin/python3.10 -m pip check
RUN python3.12 -m venv /opt/venv && \
/opt/venv/bin/python3.12 -m pip install --no-cache --no-deps -r /requirements/prod.txt -r /requirements/test.txt && \
/opt/venv/bin/python3.12 -m pip check


# --- Stage 2 --- #
Expand Down

0 comments on commit 2b03059

Please sign in to comment.