use python 3.10 and only build image after tests succeeded

This commit is contained in:
Robert Resch 2022-04-08 23:02:13 +02:00
parent a3caf8ed04
commit 0738a30ad5
3 changed files with 43 additions and 51 deletions

View file

@ -1,6 +1,6 @@
ARG ARCH=amd64
FROM $ARCH/python:3.9-alpine
FROM $ARCH/python:3.10-alpine
EXPOSE 443
EXPOSE 5223
@ -10,7 +10,7 @@ EXPOSE 8883
COPY requirements.txt /requirements.txt
# install required python packages
RUN pip3 install -r requirements.txt
RUN apk add git && pip3 install -r requirements.txt
WORKDIR /bumper