Always use the latest python and alpine images

This commit is contained in:
Tommy 2022-09-06 14:11:18 -04:00 committed by GitHub
parent e2df1fefe8
commit 4ec0e99d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,11 @@
ARG SYNAPSE_VERSION=1.66.0
ARG PYTHON_VERSION=3.10
ARG ALPINE_VERSION=3.16
ARG HARDENED_MALLOC_VERSION=11
ARG UID=991
ARG GID=991
### Build Hardened Malloc
FROM alpine:${ALPINE_VERSION} as build-malloc
FROM alpine:latest as build-malloc
ARG HARDENED_MALLOC_VERSION
ARG CONFIG_NATIVE=false
@ -22,7 +20,7 @@ RUN apk --no-cache add build-base git gnupg && cd /tmp \
### Build Synapse
ARG ALPINE_VERSION
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} as builder
FROM python:alpine as builder
ARG SYNAPSE_VERSION
@ -43,10 +41,8 @@ RUN apk -U upgrade \
### Build Production
ARG ALPINE_VERSION
ARG PYTHON_VERSION
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
FROM python:alpine
ARG UID
ARG GID