Spaces:
Running
Running
Michael Natanael
commited on
Commit
·
52f5a42
1
Parent(s):
817307d
update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
-
FROM python:3.9
|
|
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
7 |
USER user
|
@@ -11,7 +12,6 @@ WORKDIR /app
|
|
11 |
|
12 |
COPY --chown=user ./requirements.txt requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
-
RUN apt install ffmpeg
|
15 |
|
16 |
COPY --chown=user . /app
|
17 |
# CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
+
# FROM python:3.9
|
5 |
+
FROM huggingface/transformers-pytorch-cpu:latest
|
6 |
|
7 |
RUN useradd -m -u 1000 user
|
8 |
USER user
|
|
|
12 |
|
13 |
COPY --chown=user ./requirements.txt requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
15 |
|
16 |
COPY --chown=user . /app
|
17 |
# CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|