Spaces:
Sleeping
Sleeping
Jami Pekkanen
commited on
Commit
·
e4732c7
1
Parent(s):
def8bca
Update permissions
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
@@ -8,4 +19,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
8 |
|
9 |
COPY . .
|
10 |
|
11 |
-
CMD ["marimo", "run", "--host", "0.0.0.0", "--port", "7860", "basics.py"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
|
4 |
+
# Set up a new user named "user" with user ID 1000
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
|
7 |
+
# Switch to the "user" user
|
8 |
+
USER user
|
9 |
+
|
10 |
+
# Set home to the user's home directory
|
11 |
+
ENV HOME=/home/user \
|
12 |
+
PATH=/home/user/.local/bin:$PATH
|
13 |
+
|
14 |
WORKDIR /code
|
15 |
|
16 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
19 |
|
20 |
COPY . .
|
21 |
|
22 |
+
CMD ["marimo", "run", "--host", "0.0.0.0", "--no-token", "--port", "7860", "basics.py"]
|