Handylabel / Dockerfile
Imsachinsingh00's picture
Update Dockerfile
f01b623 verified
raw
history blame
404 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 .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt --upgrade --ignore-installed
# Copy the app code
COPY . .
# Expose port (Flask runs on 5000 by default)
EXPOSE 5000
# Run the application
CMD ["python", "app.py"]