Spaces:
Runtime error
Runtime error
asr-whisper
commited on
Commit
·
6f8bfe5
1
Parent(s):
d08858c
Upload Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM onerahmet/openai-whisper-asr-webservice:latest
|
2 |
+
|
3 |
+
RUN mkdir -p /root/.cache
|
4 |
+
|
5 |
+
RUN touch /var/run/nginx.pid
|
6 |
+
|
7 |
+
RUN chown -R 1000:1000 /app/ \
|
8 |
+
/root/.cache
|
9 |
+
|
10 |
+
RUN useradd -m -u 1000 user
|
11 |
+
|
12 |
+
USER user
|
13 |
+
|
14 |
+
ENV HOME=/home/user \
|
15 |
+
PATH=/home/user/.local/bin:$PATH
|
16 |
+
|
17 |
+
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "0", "app.webservice:app", "-k", "uvicorn.workers.UvicornWorker"]
|