Asaad Almutareb commited on
Commit
b522754
1 Parent(s): f836b63

updated dockerfile

Browse files
Files changed (2) hide show
  1. .devcontainer/devcontainer.json +6 -1
  2. Dockerfile +3 -3
.devcontainer/devcontainer.json CHANGED
@@ -10,7 +10,12 @@
10
  "build": { "dockerfile": "Dockerfile" },
11
 
12
  // Features to add to the dev container. More info: https://containers.dev/features.
13
- // "features": {},
 
 
 
 
 
14
 
15
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
16
  // "forwardPorts": [],
 
10
  "build": { "dockerfile": "Dockerfile" },
11
 
12
  // Features to add to the dev container. More info: https://containers.dev/features.
13
+ "features": {
14
+ "docker-from-docker": {
15
+ "version": "latest",
16
+ "moby": true
17
+ }
18
+ },
19
 
20
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
21
  // "forwardPorts": [],
Dockerfile CHANGED
@@ -6,7 +6,7 @@ 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 /
10
 
11
  COPY --chown=user ./requirements.txt requirements.txt
12
  RUN apt-get -y update
@@ -15,6 +15,6 @@ 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"]
 
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
 
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
  EXPOSE 1433
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", "7860"]