j commited on
Commit
f28d106
·
1 Parent(s): 6fd9cf8

reverting Dockerfile for real this time

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -3
Dockerfile CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  ENV PYTHON_VERSION=3.10
2
  ENV POETRY_VENV=/app/.venv
3
  ENV HF_HOME="/app/.cache"
@@ -5,13 +12,26 @@ ENV ASR_MODEL_PATH="/app/.cache"
5
 
6
  RUN export DEBIAN_FRONTEND=noninteractive \
7
  && apt-get -qq update \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ln -s -f /usr/bin/python${PYTHON_VERSION} /usr/bin/python && \
9
  ln -s -f /usr/bin/pip3 /usr/bin/pip
10
 
11
  RUN groupadd -g $SERVICE_GID $SERVICE_USER && \
12
  useradd -u $SERVICE_UID -g $SERVICE_GID -d /app -s /usr/sbin/nologin $SERVICE_USER
13
 
14
-
15
  RUN getent group $SERVICE_USER
16
  RUN getent passwd $SERVICE_USER
17
 
@@ -39,7 +59,6 @@ RUN poetry config virtualenvs.in-project true
39
  RUN poetry install --no-root
40
 
41
  RUN poetry install && rm -rf /app/.cache/pypoetry
42
-
43
  RUN $POETRY_VENV/bin/pip install --no-cache-dir torch==1.13.1+cu117 -f https://download.pytorch.org/whl/torch
44
 
45
  WORKDIR /app/reascripts/ReaSpeech
@@ -53,4 +72,4 @@ RUN rm -rf reascripts
53
 
54
  ENTRYPOINT ["python3", "app/run.py"]
55
 
56
- EXPOSE 9000
 
1
+ FROM swaggerapi/swagger-ui:v4.18.2 AS swagger-ui
2
+ FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
3
+
4
+ ARG SERVICE_USER=service
5
+ ARG SERVICE_UID=1001
6
+ ARG SERVICE_GID=1001
7
+
8
  ENV PYTHON_VERSION=3.10
9
  ENV POETRY_VENV=/app/.venv
10
  ENV HF_HOME="/app/.cache"
 
12
 
13
  RUN export DEBIAN_FRONTEND=noninteractive \
14
  && apt-get -qq update \
15
+ && apt-get -qq install --no-install-recommends \
16
+ python${PYTHON_VERSION} \
17
+ python${PYTHON_VERSION}-venv \
18
+ python3-pip \
19
+ lua5.3 \
20
+ lua5.4 \
21
+ lua-check \
22
+ fswatch \
23
+ make \
24
+ ffmpeg \
25
+ redis \
26
+ && rm -rf /var/lib/apt/lists/*
27
+
28
+ RUN ln -s -f /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 && \
29
  ln -s -f /usr/bin/python${PYTHON_VERSION} /usr/bin/python && \
30
  ln -s -f /usr/bin/pip3 /usr/bin/pip
31
 
32
  RUN groupadd -g $SERVICE_GID $SERVICE_USER && \
33
  useradd -u $SERVICE_UID -g $SERVICE_GID -d /app -s /usr/sbin/nologin $SERVICE_USER
34
 
 
35
  RUN getent group $SERVICE_USER
36
  RUN getent passwd $SERVICE_USER
37
 
 
59
  RUN poetry install --no-root
60
 
61
  RUN poetry install && rm -rf /app/.cache/pypoetry
 
62
  RUN $POETRY_VENV/bin/pip install --no-cache-dir torch==1.13.1+cu117 -f https://download.pytorch.org/whl/torch
63
 
64
  WORKDIR /app/reascripts/ReaSpeech
 
72
 
73
  ENTRYPOINT ["python3", "app/run.py"]
74
 
75
+ EXPOSE 9000