Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
@@ -1,8 +1,18 @@
|
|
1 |
# Use Python 3.10 for compatibility with newer packages
|
2 |
FROM python:3.10
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Set up a working directory
|
5 |
-
WORKDIR /
|
|
|
|
|
6 |
|
7 |
# Expose port 80
|
8 |
EXPOSE 80
|
|
|
1 |
# Use Python 3.10 for compatibility with newer packages
|
2 |
FROM python:3.10
|
3 |
|
4 |
+
|
5 |
+
RUN useradd admin
|
6 |
+
|
7 |
+
USER admin
|
8 |
+
|
9 |
+
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH
|
11 |
+
|
12 |
# Set up a working directory
|
13 |
+
WORKDIR $HOME/app
|
14 |
+
|
15 |
+
COPY --chown=user ./ $HOME/app
|
16 |
|
17 |
# Expose port 80
|
18 |
EXPOSE 80
|