Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
class-container-curriculum-dev/03-flask-app/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic version of flask app. Will ned to improve upon
18 lines (13 sloc)
277 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Base image | |
FROM python:3.11 | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements and install | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy all files | |
COPY . . | |
# Expose port for Flask | |
EXPOSE 5000 | |
# Run Flask app | |
CMD ["python", "flask_app/app.py"] |