Skip to content

Commit

Permalink
Upgrade python to v3.8.14 (#20)
Browse files Browse the repository at this point in the history
* Upgrade python to v3.8.14

* Switch to alpine 3.15

* Upgrade pip

* Add cargo to build-deps

* Remove linux/ppc64le and linux/s390x platforms

* Add linux-headers
  • Loading branch information
tms0 authored Sep 29, 2022
1 parent 3df9e3e commit 0ba249c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.8.12-alpine3.13
FROM python:3.8.14-alpine3.15

ENV VMAIL_UID=2000
ENV PYTHONPATH=/usr/local/lib/python3.8/site-packages:/usr/lib/python3.8/site-packages
ENV UWSGI_PLUGIN=python3

RUN apk add --no-cache nginx uwsgi-python3 supervisor postgresql-libs \
&& apk add --no-cache --virtual .build-deps curl gcc musl-dev postgresql-dev libffi-dev openldap-dev
&& apk add --no-cache --virtual .build-deps cargo curl gcc linux-headers musl-dev postgresql-dev openldap-dev

RUN mkdir -p /var/www/app \
&& chown -R nobody.nobody /var/www/app \
Expand All @@ -18,6 +18,7 @@ WORKDIR /var/www/app
ARG IREDADMIN_VERSION=1.8

RUN curl -L https://github.com/iredmail/iRedAdmin/archive/refs/tags/${IREDADMIN_VERSION}.tar.gz | tar -xz --strip-components=1 \
&& pip install --upgrade pip \
&& pip install -r requirements.txt --no-cache-dir \
&& apk --purge del .build-deps

Expand Down

0 comments on commit 0ba249c

Please sign in to comment.