Handylabel / Dockerfile
Imsachinsingh00's picture
Update Dockerfile
737ad25 verified
raw
history blame
405 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9
# Set the working directory
WORKDIR /app
# Copy the requirements file
COPY requirements.txt .
RUN pip install --upgrade pip
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app code
COPY . .
# Expose port (Flask runs on 5000 by default)
EXPOSE 5000
# Run the application
CMD ["python", "app.py"]