PhyllisPeh commited on
Commit
5021081
·
1 Parent(s): db13e94

updated dockerfile

Browse files
Files changed (2) hide show
  1. .dockerignore +23 -0
  2. Dockerfile +4 -4
.dockerignore ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ .Python
6
+ env
7
+ pip-log.txt
8
+ pip-delete-this-directory.txt
9
+ .tox
10
+ .coverage
11
+ .coverage.*
12
+ .cache
13
+ nosetests.xml
14
+ coverage.xml
15
+ *.cover
16
+ *.log
17
+ .pytest_cache
18
+ .env
19
+ .venv
20
+ venv/
21
+ ENV/
22
+ .git
23
+ .gitignore
Dockerfile CHANGED
@@ -14,8 +14,8 @@ RUN mkdir -p /code/templates
14
  COPY ./requirements.txt /code/requirements.txt
15
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
- # Copy application code
18
- COPY ./app.py /code/app.py
19
  COPY ./templates /code/templates
20
 
21
  # Make port 7860 available to the world outside this container
@@ -24,5 +24,5 @@ EXPOSE 7860
24
  # Note: The PATENTSVIEW_API_KEY environment variable must be set when running the container
25
  # Example: docker run -e PATENTSVIEW_API_KEY=your_api_key_here ...
26
 
27
- # Run gunicorn
28
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app", "--timeout", "300"]
 
14
  COPY ./requirements.txt /code/requirements.txt
15
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
+ # Copy all Python files
18
+ COPY ./*.py /code/
19
  COPY ./templates /code/templates
20
 
21
  # Make port 7860 available to the world outside this container
 
24
  # Note: The PATENTSVIEW_API_KEY environment variable must be set when running the container
25
  # Example: docker run -e PATENTSVIEW_API_KEY=your_api_key_here ...
26
 
27
+ # Run gunicorn with the run.py application
28
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "run:app", "--timeout", "300"]