Zlatislav Zlatev commited on
Commit
9a18fd5
·
1 Parent(s): fa541f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
  FROM ubuntu:20.04
2
- LABEL maintainer="Hugging Face"
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
@@ -9,7 +8,6 @@ RUN apt update && \
9
  git \
10
  git-lfs \
11
  curl \
12
- shellinabox \
13
  ca-certificates \
14
  libsndfile1-dev \
15
  python3.8 \
@@ -17,12 +15,12 @@ RUN apt update && \
17
  python3.8-venv && \
18
  rm -rf /var/lib/apt/lists
19
 
20
- # make sure to use venv
21
- RUN python3 -m venv /opt/venv
22
- ENV PATH="/opt/venv/bin:$PATH"
23
- EXPOSE 7860
 
24
 
25
- RUN python3 -m pip install --no-cache-dir --upgrade pip && \
26
- pip3 install web-terminal
27
 
28
- CMD ["python3", "-m", "web-terminal", "--port", "$PORT"]
 
1
  FROM ubuntu:20.04
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
 
8
  git \
9
  git-lfs \
10
  curl \
 
11
  ca-certificates \
12
  libsndfile1-dev \
13
  python3.8 \
 
15
  python3.8-venv && \
16
  rm -rf /var/lib/apt/lists
17
 
18
+ ENV VIRTUAL_ENV=/opt/venv
19
+ RUN python3 -m venv $VIRTUAL_ENV
20
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
21
+
22
+ RUN pip install web-terminal
23
 
24
+ EXPOSE 7860
 
25
 
26
+ CMD ["python", "-m", "web_terminal", "--port", "$PORT"]