ypchangchatgpt commited on
Commit
2df6212
β€’
1 Parent(s): 2e14a3e

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -6
  2. README.md +0 -1
Dockerfile CHANGED
@@ -3,9 +3,7 @@ FROM python:3.8.9
3
  WORKDIR /app
4
 
5
  COPY ./requirements.txt /app/requirements.txt
6
- # COPY ./packages.txt /app/packages.txt
7
 
8
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
9
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
10
 
11
  # User
@@ -13,11 +11,12 @@ RUN useradd -m -u 1000 user
13
  USER user
14
  ENV HOME /home/user
15
  ENV PATH $HOME/.local/bin:$PATH
 
16
 
17
  WORKDIR $HOME
18
  RUN mkdir app
19
- WORKDIR $HOME/app
20
- COPY . $HOME/app
21
 
22
- EXPOSE 8501
23
- CMD streamlit run app.py
 
3
  WORKDIR /app
4
 
5
  COPY ./requirements.txt /app/requirements.txt
 
6
 
 
7
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
8
 
9
  # User
 
11
  USER user
12
  ENV HOME /home/user
13
  ENV PATH $HOME/.local/bin:$PATH
14
+ ENV GRADIO_SERVER_NAME 0.0.0.0
15
 
16
  WORKDIR $HOME
17
  RUN mkdir app
18
+ WORKDIR $HOME
19
+ COPY . $HOME
20
 
21
+ # EXPOSE 8501
22
+ CMD streamlit run app.py
README.md CHANGED
@@ -4,7 +4,6 @@ emoji: πŸƒ
4
  colorFrom: red
5
  colorTo: red
6
  sdk: docker
7
- app_port: 8501
8
  pinned: false
9
  license: unknown
10
  ---
 
4
  colorFrom: red
5
  colorTo: red
6
  sdk: docker
 
7
  pinned: false
8
  license: unknown
9
  ---