Change docker image for bullseye
This commit is contained in:
jeanGaston 2024-01-30 09:29:48 +01:00
parent 24d4291197
commit 51b2fd16de
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Use the official Python image as a base image # Use the official Python image as a base image
FROM python:3.8-slim FROM python:3.11-slim-bullseye
# Set the working directory in the container # Set the working directory in the container
WORKDIR /app WORKDIR /app

View File

@ -1,5 +1,5 @@
# Use the official Python image as a base image # Use the official Python image as a base image
FROM python:3.11-slim FROM python:3.11-slim-bullseye
# Set the working directory in the container # Set the working directory in the container
WORKDIR /app WORKDIR /app
@ -11,7 +11,7 @@ COPY ./Helloworld.py /app/
EXPOSE 5000 EXPOSE 5000
# Install any dependencies # Install any dependencies
RUN pip install --no-cache-dir flask RUN pip install --no-cache-dir -r ./requirements.txt
# Set the entry point # Set the entry point
CMD ["python", "Helloworld.py"] CMD ["python", "Helloworld.py"]