sabazo commited on
Commit
f836b63
·
unverified ·
2 Parent(s): 27409db e492688

Merge pull request #8 from almutareb:9_expose_port_docker

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -6,14 +6,15 @@ FROM python:3.11
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
9
- WORKDIR /app
10
 
11
  COPY --chown=user ./requirements.txt requirements.txt
12
  RUN apt-get -y update
13
  RUN apt-get -y upgrade
14
  RUN apt-get install -y sqlite3 libsqlite3-dev
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
16
 
17
- COPY --chown=user . /app
18
- RUN /usr/bin/sqlite3 /app/database/source_cache.sqlite3
19
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
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
9
+ WORKDIR /
10
 
11
  COPY --chown=user ./requirements.txt requirements.txt
12
  RUN apt-get -y update
13
  RUN apt-get -y upgrade
14
  RUN apt-get install -y sqlite3 libsqlite3-dev
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
+ EXPOSE 1433
17
 
18
+ COPY --chown=user . /
19
+ #RUN /usr/bin/sqlite3 /app/database/source_cache.sqlite3
20
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]