test_compos/Dockerfile

18 lines
417 B
Docker

# Use the official Python image with a specific version
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy requirements and install them (if there were any)
COPY requirements.txt /app/
RUN pip install -r requirements.txt
# Copy the rest of the application code
COPY . /app
# Expose the port the app runs on
EXPOSE 5000
# Command to run the application
CMD ["python", "app.py"]