Commit
•
1228ed9
1
Parent(s):
b8536c7
changed to docker SDK
Browse files- .gitignore +1 -0
- DockerFile +20 -0
- README.md +1 -2
.gitignore
CHANGED
@@ -5503,3 +5503,4 @@ Mercury.modules
|
|
5503 |
/huggingface/
|
5504 |
|
5505 |
!/.streamlit/config.toml
|
|
|
|
5503 |
/huggingface/
|
5504 |
|
5505 |
!/.streamlit/config.toml
|
5506 |
+
!/DockerFile
|
DockerFile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM bitnami/pytorch
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY ./requirements.txt /app/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
8 |
+
|
9 |
+
RUN useradd -m -u 1000 user
|
10 |
+
USER user
|
11 |
+
ENV HOME /home/user
|
12 |
+
ENV PATH $HOME/.local/bin:$PATH
|
13 |
+
|
14 |
+
WORKDIR $HOME
|
15 |
+
RUN mkdir app
|
16 |
+
WORKDIR $HOME/app
|
17 |
+
COPY . $HOME/app
|
18 |
+
|
19 |
+
EXPOSE 8501
|
20 |
+
CMD streamlit run app.py
|
README.md
CHANGED
@@ -3,8 +3,7 @@ title: Grouped Sampling Demo
|
|
3 |
emoji: 🐠
|
4 |
colorFrom: pink
|
5 |
colorTo: purple
|
6 |
-
sdk:
|
7 |
-
sdk_version: 1.19.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
fullWidth: true
|
|
|
3 |
emoji: 🐠
|
4 |
colorFrom: pink
|
5 |
colorTo: purple
|
6 |
+
sdk: docker
|
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
9 |
fullWidth: true
|