DietPro / Dockerfile
Vishwas1's picture
Update Dockerfile
2ef81d9 verified
raw
history blame contribute delete
309 Bytes
FROM python:3.9
COPY . /app
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the Flask application and templates directory into the container
COPY app.py .
COPY templates templates
# Expose the port the application will run on
EXPOSE 5001
CMD ["python", "app.py"]