Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppeingoglia authored Jun 12, 2024
1 parent fd41514 commit a13f695
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Use the official Python image from Docker Hub
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install any needed packages specified in requirements.txt
RUN apt-get update \
&& apt-get install -y gcc libc-dev \
&& pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Install any needed dependencies specified in requirements.txt
RUN pip install --no-cache-dir Flask

# Make port 80 available to the world outside this container
EXPOSE 80

# Define environment variable
ENV NAME World
# Make port 5000 available to the world outside this container
EXPOSE 5000

# Run app.py when the container launches
CMD ["python", "app.py"]

0 comments on commit a13f695

Please sign in to comment.