Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -7,12 +7,16 @@ RUN useradd -m -u 1000 user
|
|
7 |
USER user
|
8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
WORKDIR /app
|
11 |
|
12 |
COPY --chown=user ./requirements.txt requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
-
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y python3-gi
|
16 |
|
17 |
COPY --chown=user . /app
|
18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
7 |
USER user
|
8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
9 |
|
10 |
+
USER root
|
11 |
+
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y python3-gi
|
12 |
+
USER user
|
13 |
+
|
14 |
+
|
15 |
WORKDIR /app
|
16 |
|
17 |
COPY --chown=user ./requirements.txt requirements.txt
|
18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
19 |
|
|
|
20 |
|
21 |
COPY --chown=user . /app
|
22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|