Skip to content

Commit 89813d1

Browse files
authored
Merge pull request #601 from CodeForPhilly/539-update-server-python-310
update to python 3.10.9
2 parents 9ef04ed + e76eec0 commit 89813d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/server/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.10.9-bullseye
22

33
RUN apt-get update && apt-get install -y vim
44

@@ -16,10 +16,10 @@ COPY requirements.txt /
1616

1717
RUN pip install --no-cache-dir -r /requirements.txt
1818

19-
RUN export PYTHON=python3.8
20-
RUN uwsgi --build-plugin "/usr/src/uwsgi/plugins/python python38"
21-
RUN mv python38_plugin.so /usr/lib/uwsgi/plugins/python38_plugin.so
22-
RUN chmod 666 /usr/lib/uwsgi/plugins/python38_plugin.so
19+
RUN export PYTHON=python3.10
20+
RUN uwsgi --build-plugin "/usr/src/uwsgi/plugins/python python310"
21+
RUN mv python310_plugin.so /usr/lib/uwsgi/plugins/python310_plugin.so
22+
RUN chmod 666 /usr/lib/uwsgi/plugins/python310_plugin.so
2323

2424
COPY . .
2525

src/server/bin/uwsgi.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[uwsgi]
22
http-socket = :5000
3-
plugin = python38
3+
plugin = python310
44
module = wsgi:app
55
chdir = /app
66
pythonpath = .

0 commit comments

Comments
 (0)