Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
RUN sudo lscpu
|
4 |
-
RUN cat /proc/cpuinfo
|
5 |
-
|
6 |
RUN useradd -m -u 1000 user
|
7 |
USER user
|
8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
9 |
WORKDIR /app
|
10 |
-
|
11 |
RUN pip install fastapi uvicorn[standard]==0.17.* transformers torch accelerate
|
12 |
|
|
|
|
|
|
|
13 |
COPY --chown=user . /app
|
14 |
|
15 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
3 |
RUN useradd -m -u 1000 user
|
4 |
USER user
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
WORKDIR /app
|
7 |
+
|
8 |
RUN pip install fastapi uvicorn[standard]==0.17.* transformers torch accelerate
|
9 |
|
10 |
+
RUN sudo lscpu
|
11 |
+
RUN cat /proc/cpuinfo
|
12 |
+
|
13 |
COPY --chown=user . /app
|
14 |
|
15 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|