Spaces:
Sleeping
Sleeping
ejschwartz
commited on
Commit
Β·
a1d4a6b
1
Parent(s):
04e6f1a
Docker
Browse files- Dockerfile +27 -0
- README.md +1 -3
- app.py β main.py +0 -0
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# From https://huggingface.co/spaces/sayakpaul/demo-docker-gradio/blob/main/Dockerfile
|
2 |
+
|
3 |
+
FROM python:3.9
|
4 |
+
|
5 |
+
WORKDIR /code
|
6 |
+
|
7 |
+
COPY ./requirements.txt /code/requirements.txt
|
8 |
+
|
9 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
+
|
11 |
+
# Set up a new user named "user" with user ID 1000
|
12 |
+
RUN useradd -m -u 1000 user
|
13 |
+
|
14 |
+
# Switch to the "user" user
|
15 |
+
USER user
|
16 |
+
|
17 |
+
# Set home to the user's home directory
|
18 |
+
ENV HOME=/home/user \
|
19 |
+
PATH=/home/user/.local/bin:$PATH
|
20 |
+
|
21 |
+
# Set the working directory to the user's home directory
|
22 |
+
WORKDIR $HOME/app
|
23 |
+
|
24 |
+
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
25 |
+
COPY --chown=user . $HOME/app
|
26 |
+
|
27 |
+
CMD ["python", "main.py"]
|
README.md
CHANGED
@@ -3,9 +3,7 @@ title: Dirty Ghidra
|
|
3 |
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: red
|
6 |
-
sdk:
|
7 |
-
sdk_version: 4.42.0
|
8 |
-
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
11 |
|
|
|
3 |
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: red
|
6 |
+
sdk: docker
|
|
|
|
|
7 |
pinned: false
|
8 |
---
|
9 |
|
app.py β main.py
RENAMED
File without changes
|