Spaces:
Runtime error
Runtime error
Lev McKinney
commited on
Commit
β’
5b45206
1
Parent(s):
b059892
switched to using dockerfile
Browse files- Dockerfile +21 -0
- README.md +2 -4
- requirements.txt +1 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
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
|
10 |
+
RUN useradd -m -u 1000 user
|
11 |
+
USER user
|
12 |
+
ENV HOME /home/user
|
13 |
+
ENV PATH $HOME/.local/bin:$PATH
|
14 |
+
|
15 |
+
WORKDIR $HOME
|
16 |
+
RUN mkdir app
|
17 |
+
WORKDIR $HOME/app
|
18 |
+
COPY . $HOME/app
|
19 |
+
|
20 |
+
EXPOSE 8501
|
21 |
+
CMD streamlit run app.py
|
README.md
CHANGED
@@ -3,10 +3,8 @@ title: Tuned Lens
|
|
3 |
emoji: π
|
4 |
colorFrom: pink
|
5 |
colorTo: blue
|
6 |
-
sdk:
|
7 |
-
|
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 |
+
app_port: 8501
|
|
|
|
|
8 |
pinned: false
|
9 |
license: mit
|
10 |
---
|
requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
tuned_lens==0.0.5
|
|
|
|
1 |
tuned_lens==0.0.5
|
2 |
+
streamlit
|