ChrQR
96e42454b1
All checks were successful
Build and Push Docker Images / build (push) Successful in 37s
18 lines
438 B
Docker
18 lines
438 B
Docker
# Use the official Python image from the Docker Hub
|
|
FROM python:3.9-slim
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy the current directory contents into the container at /app
|
|
COPY . /app
|
|
|
|
# Install the required Python packages
|
|
RUN pip install -r requirements.txt
|
|
|
|
# Expose port 5000 to the outside world
|
|
EXPOSE 5000
|
|
|
|
# Command to run the app using Gunicorn
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
|