sabazo commited on
Commit
6603356
1 Parent(s): 9bd262d

Reversed default port change and added venv

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -3,6 +3,10 @@
3
 
4
  FROM python:3.11
5
 
 
 
 
 
6
  # The two following lines are requirements for the Dev Mode to be functional
7
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
8
  RUN useradd -m -u 1000 user
@@ -17,4 +21,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
  COPY --chown=user . /app
19
  #RUN /usr/bin/sqlite3 /app/database/source_cache.sqlite3
20
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
3
 
4
  FROM python:3.11
5
 
6
+ ENV VIRTUAL_ENV=/opt/venv
7
+ RUN python -m venv $VIRTUAL_ENV
8
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
9
+
10
  # The two following lines are requirements for the Dev Mode to be functional
11
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
12
  RUN useradd -m -u 1000 user
 
21
 
22
  COPY --chown=user . /app
23
  #RUN /usr/bin/sqlite3 /app/database/source_cache.sqlite3
24
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]