Hackathon / Dockerfile
shreyankisiri's picture
Create Dockerfile
c9a565f verified
raw
history blame contribute delete
356 Bytes
# Use an official Python base image
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Set the command to run the application
CMD ["python", "main.py"]