MemeTech commited on
Commit
0d477f2
·
1 Parent(s): 0d720c1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -1,13 +1,25 @@
 
1
  FROM python:3.9
2
 
 
3
  WORKDIR /code
4
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
 
9
  COPY . .
10
 
 
11
  EXPOSE 7860
12
 
13
- CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
1
+ # Use Python 3.9 as the base image
2
  FROM python:3.9
3
 
4
+ # Set the working directory to /code
5
  WORKDIR /code
6
 
7
+ # Copy the requirements.txt file to the container
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
+ # Install Python dependencies from requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
+ # Copy the rest of the files from the current directory to the container
14
  COPY . .
15
 
16
+ # Expose port 7860
17
  EXPOSE 7860
18
 
19
+ # Set up Flask-specific configurations
20
+ ENV FLASK_APP=app.py
21
+ ENV FLASK_RUN_HOST=0.0.0.0
22
+ ENV FLASK_RUN_PORT=7860
23
+
24
+ # Run the Flask application
25
+ CMD ["flask", "run"]