Fix Dockerfile warnings

This commit is contained in:
Brain 2024-08-21 21:08:52 +02:00
parent 6a3458a596
commit a5a85e6032
Signed by: Brain
GPG Key ID: EE936E31EE3AEE7A

View File

@ -2,10 +2,10 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later
FROM python:3.8.18-alpine as builder
FROM python:3.8.18-alpine AS builder
ENV PYROOT /pyroot
ENV PYTHONUSERBASE $PYROOT
ENV PYROOT=/pyroot
ENV PYTHONUSERBASE=$PYROOT
RUN apk add --no-cache \
gcc \
@ -20,10 +20,10 @@ RUN PIP_USER=1 PIP_IGNORE_INSTALLED=1 pipenv install --system --deploy --ignore-
RUN pip3 uninstall --yes pipenv
FROM python:3.8.18-alpine as ki-backend
FROM python:3.8.18-alpine AS ki-backend
ENV PYROOT /pyroot
ENV PYTHONUSERBASE $PYROOT
ENV PYROOT=/pyroot
ENV PYTHONUSERBASE=$PYROOT
# Install six explicitly. Otherwise Python complains about it missing.
RUN pip3 install six