asv7j commited on
Commit
7f4a87c
·
verified ·
1 Parent(s): c82a45d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- RUN cat /proc/cpuinfo
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"]