Severian commited on
Commit
c0dcc0e
·
verified ·
1 Parent(s): f75784c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -2,14 +2,12 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
- COPY ./api.py /code/api.py
7
- COPY ./json_parser.py /code/json_parser.py
8
- COPY ./logger_config.py /code/logger_config.py
9
- COPY ./response_formatter.py /code/response_formatter.py
10
 
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
 
 
13
  EXPOSE 7860
14
 
15
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
 
5
+ COPY . /code/
 
 
 
 
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
+ RUN pip install -e .
10
+
11
  EXPOSE 7860
12
 
13
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]