18 lines
393 B
Docker
18 lines
393 B
Docker
# Use the official Python image as the base image
|
|
FROM python:3.11-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy the application files into the container
|
|
COPY . /app
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 5001
|
|
|
|
# Set the default command to run the application
|
|
CMD ["python", "src/app.py"]
|