tools4eu commited on
Commit
995d8d1
1 Parent(s): 049d0fd

moved Docker image to external repo

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -46
  2. README.md +3 -5
Dockerfile DELETED
@@ -1,46 +0,0 @@
1
- FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
2
-
3
- ENV NB_USER jovyan
4
- ENV NB_UID 1000
5
- ENV NB_PREFIX /
6
-
7
- RUN export DEBIAN_FRONTEND=noninteractive \
8
- && apt-get -yq update \
9
- && apt-get -yq install --no-install-recommends \
10
- git \
11
- ffmpeg \
12
- software-properties-common \
13
- && apt upgrade -y \
14
- && apt-get clean \
15
- && rm -rf /var/lib/apt/lists/*
16
-
17
- RUN export DEBIAN_FRONTEND=noninteractive \
18
- && add-apt-repository ppa:deadsnakes/ppa \
19
- && apt-get -yq update \
20
- && apt-get -yq install --no-install-recommends \
21
- python3.11 \
22
- python3.11-venv \
23
- && apt upgrade -y \
24
- && apt-get clean \
25
- && rm -rf /var/lib/apt/lists/*
26
-
27
- RUN useradd -M -s /bin/bash -N -u ${NB_UID} ${NB_USER} \
28
- && mkdir -p ${HOME} \
29
- && chown -R ${NB_USER}:users ${HOME} \
30
- && chown -R ${NB_USER}:users /usr/local/bin
31
-
32
- USER $NB_UID
33
- WORKDIR /home/${NB_USER}/
34
- ENV PATH=/venv/bin:$PATH
35
-
36
- COPY --chown=${NB_USER}:users ./requirements.txt /home/${NB_USER}/requirements.txt
37
- RUN python3.11 -m venv /home/${NB_USER}/venv \
38
- && /home/${NB_USER}/venv/bin/pip install --upgrade pip wheel \
39
- && /home/${NB_USER}/venv/bin/pip install -r /home/${NB_USER}/requirements.txt
40
-
41
- COPY --chown=${NB_USER}:users ./.env* /home/${NB_USER}/
42
- COPY --chown=${NB_USER}:users ./src /home/${NB_USER}/src
43
-
44
- EXPOSE 7860
45
-
46
- CMD ["/home/jovyan/venv/bin/python", "-u", "/home/jovyan/src/app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -46,17 +46,15 @@ For a desktop (visual UI available), follow [these instructions](https://www.doc
46
 
47
  ### Docker (recommended)
48
 
49
- Build the Docker image
50
-
51
- `docker build -t asr .` (make sure Docker is running on your system)
52
 
53
  Run the Docker image, forward port 7860 (Gradio) and pass your GPU(s) to the container
54
 
55
- `docker run -p 7860:7860 --gpus all asr`
56
 
57
  Or in detached mode (in background)
58
 
59
- `docker run -d -p 7860:7860 --gpus all asr`
60
 
61
  You can check whether it is running with
62
 
 
46
 
47
  ### Docker (recommended)
48
 
49
+ The Docker image is prebuilt and maintained at [tools4eu/docker-asr](https://github.com/tools4eu/docker-asr) and available on the Docker Hub as [tools4eu/asr](https://hub.docker.com/repository/docker/tools4eu/asr/general)
 
 
50
 
51
  Run the Docker image, forward port 7860 (Gradio) and pass your GPU(s) to the container
52
 
53
+ `docker run -p 7860:7860 --gpus all tools4eu/asr`
54
 
55
  Or in detached mode (in background)
56
 
57
+ `docker run -d -p 7860:7860 --gpus all tools4eu/asr`
58
 
59
  You can check whether it is running with
60