Lev McKinney commited on
Commit
caa9e5c
β€’
1 Parent(s): b001abb

switched to docker

Browse files
Files changed (3) hide show
  1. Dockerfile +25 -0
  2. README.md +1 -4
  3. requirements.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ # Set up a new user named "user" with user ID 1000
10
+ RUN useradd -m -u 1000 user
11
+
12
+ # Switch to the "user" user
13
+ USER user
14
+
15
+ # Set home to the user's home directory
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
+
19
+ # Set the working directory to the user's home directory
20
+ WORKDIR $HOME/app
21
+
22
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
23
+ COPY --chown=user . $HOME/app
24
+
25
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -3,10 +3,7 @@ title: Tuned Lens
3
  emoji: πŸ”Ž
4
  colorFrom: pink
5
  colorTo: blue
6
- sdk: gradio
7
- python_version: 3.10.2
8
- sdk_version: 3.20.0
9
- app_file: app.py
10
  pinned: false
11
  license: mit
12
  ---
 
3
  emoji: πŸ”Ž
4
  colorFrom: pink
5
  colorTo: blue
6
+ sdk: docker
 
 
 
7
  pinned: false
8
  license: mit
9
  ---
requirements.txt CHANGED
@@ -1 +1,2 @@
1
  tuned_lens==0.0.5
 
 
1
  tuned_lens==0.0.5
2
+ gradio