Skip to content

Commit

Permalink
Update Dockerfile for prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
karntrehan authored Jul 2, 2024
1 parent c3b42ef commit 4cdd152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ COPY . /app
RUN pip install --no-cache-dir -r requirements.txt

# Make port 5000 available to the world outside this container
EXPOSE 5000
EXPOSE 7000

# Define environment variable
ENV FLASK_APP=wsgi.py
ENV FLASK_RUN_HOST=0.0.0.0

# Run the application
CMD ["flask", "run"]
CMD ["flask", "run", "--host=0.0.0.0", "--port=7000"]

0 comments on commit 4cdd152

Please sign in to comment.