Skip to content

Commit 43bbb5f

Browse files
committed
Update Dockerfile to use Python3.11 and add MyPy.
1 parent f886d41 commit 43bbb5f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
FROM python:3.7-stretch
1+
FROM python:3.11-buster
22
LABEL maintainer "[email protected]"
33

4-
ARG userid=1000
5-
64
RUN apt-get update && \
7-
pip install pygame
5+
apt-get install -y python3-pygame
86

97
COPY ./requirements.txt /requirements.txt
108
RUN pip install -r /requirements.txt
119
COPY ./ app/
1210
RUN cd app/ && python setup.py install
13-
RUN useradd -m -U -s /bin/bash -u $userid pygame
11+
RUN useradd -m -U -s /bin/bash pygame
1412

1513
USER pygame
1614
WORKDIR /home/pygame

requirements.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
pytest==6.0.1
1+
nose==1.3.7
2+
mock==2.0.0
3+
mypy==1.0.0
4+
mypy-extensions==1.0.0
5+
typing-extensions==4.4.0

0 commit comments

Comments
 (0)