Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse filesuncommented sqlite installation, port 1433 exposed
- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -9,12 +9,12 @@ RUN useradd -m -u 1000 user
|
|
9 |
WORKDIR /app
|
10 |
|
11 |
COPY --chown=user ./requirements.txt requirements.txt
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
16 |
-
|
17 |
|
18 |
COPY --chown=user . /app
|
19 |
-
|
20 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
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 |
+
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", "8000"]
|