Skip to content

Commit

Permalink
Development (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
xirixiz authored Dec 30, 2024
1 parent 4c7674c commit f90d5c1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# STAGING STEP
#---------------------------------------------------------------------------------------------------------------------------

FROM --platform=$BUILDPLATFORM python:3.13-alpine3.21 as staging
FROM --platform=$BUILDPLATFORM python:3.12-alpine3.21 as staging
WORKDIR /app

ARG DSMR_VERSION
Expand All @@ -16,7 +16,7 @@ RUN echo "**** Download DSMR ****" \
#---------------------------------------------------------------------------------------------------------------------------
# BUILD STEP
#---------------------------------------------------------------------------------------------------------------------------
FROM python:3.13-alpine3.21 as base
FROM python:3.12-alpine3.21 as base

# Build the binary according to the TARGET platform variables
ARG TARGETARCH
Expand Down Expand Up @@ -73,7 +73,7 @@ RUN echo "**** install runtime packages ****" \
nginx \
openssl \
netcat-openbsd \
postgresql16-client \
postgresql17-client \
mariadb-connector-c-dev \
mariadb-client \
libjpeg-turbo \
Expand All @@ -97,11 +97,9 @@ RUN echo "**** install s6 overlay ****" \
&& rm -rf /tmp/s6-overlay-*.tar.xz

RUN echo "**** install build packages ****" \
&& apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev postgresql-dev build-base mariadb-dev libffi-dev jpeg-dev cargo rust \
&& apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev postgresql17-dev build-base mariadb-dev libpq-dev libffi-dev jpeg-dev cargo rust \
&& echo "**** install pip packages ****" \
&& python3 -m pip install "cython<3.0.0" --no-cache-dir \
&& python3 -m pip install -r /app/dsmrreader/provisioning/requirements/base.txt --no-cache-dir \
&& python3 -m pip install psycopg2 --no-cache-dir \
&& python3 -m pip install mysqlclient --no-cache-dir \
&& python3 -m pip install tzupdate --no-cache-dir \
&& echo "**** create app user and make base folders ****" \
Expand Down

0 comments on commit f90d5c1

Please sign in to comment.