blumenstiel commited on
Commit
b6a98a9
Β·
1 Parent(s): 364032f

Remove dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -38
  2. requirements.txt +1 -1
Dockerfile DELETED
@@ -1,38 +0,0 @@
1
- FROM ubuntu:22.04
2
-
3
-
4
- RUN apt-get update && apt-get install --no-install-recommends -y \
5
- build-essential \
6
- python3.9 \
7
- python3-pip \
8
- git \
9
- && apt-get clean && rm -rf /var/lib/apt/lists/*
10
-
11
- WORKDIR /code
12
-
13
- COPY ./requirements.txt /code/requirements.txt
14
-
15
- # Set up a new user named "user" with user ID 1000
16
- RUN useradd -m -u 1000 user
17
- # Switch to the "user" user
18
- USER user
19
- # Set home to the user's home directory
20
- ENV HOME=/home/user \
21
- PATH=/home/user/.local/bin:$PATH \
22
- PYTHONPATH=$HOME/app \
23
- PYTHONUNBUFFERED=1 \
24
- GRADIO_ALLOW_FLAGGING=never \
25
- GRADIO_NUM_PORTS=1 \
26
- GRADIO_SERVER_NAME=0.0.0.0 \
27
- GRADIO_THEME=huggingface \
28
- SYSTEM=spaces
29
-
30
- RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
31
-
32
- # Set the working directory to the user's home directory
33
- WORKDIR $HOME/app
34
-
35
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
36
- COPY --chown=user . $HOME/app
37
-
38
- CMD ["python3", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
requirements.txt CHANGED
@@ -4,4 +4,4 @@ timm
4
  rasterio
5
  einops
6
  huggingface_hub
7
- gradio
 
4
  rasterio
5
  einops
6
  huggingface_hub
7
+ gradio>=4.31.0