changed dockerfile to use python3.11
This commit is contained in:
parent
796aa79db0
commit
394990c3ac
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.10-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
# Keeps Python from generating .pyc files in the container
|
# Keeps Python from generating .pyc files in the container
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
@ -23,4 +23,4 @@ COPY . /app
|
|||||||
RUN adduser -u 1000 --disabled-password --gecos "" appuser && chown -R appuser /app
|
RUN adduser -u 1000 --disabled-password --gecos "" appuser && chown -R appuser /app
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
|
Reference in New Issue
Block a user