Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use a specific version of the Python base image to ensure consistency across builds
FROM python:3.9-slim

# Set the working directory in the Docker container
WORKDIR /app

# Copy only the requirements file to the working directory to leverage Docker cache
COPY requirements.txt ./

# Install any required packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application code to the container
COPY . .

# Expose port 6000 to allow communication to/from the server
EXPOSE 6000

# Command to run the application when the container starts
CMD ["python", "app.py"]