update
Change docker image for bullseye
This commit is contained in:
parent
24d4291197
commit
51b2fd16de
@ -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
|
||||||
|
|||||||
@ -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"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user