Spaces:
Sleeping
Sleeping
Commit
·
b4d7b3e
1
Parent(s):
978bce4
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -17,12 +17,13 @@ EXPOSE 8080
|
|
| 17 |
RUN useradd -m -u 1000 user
|
| 18 |
# Switch to the "user" user
|
| 19 |
USER user
|
|
|
|
| 20 |
# Set home to the user's home directory
|
| 21 |
ENV HOME=/home/user \
|
| 22 |
PATH=/home/user/.local/bin:$PATH
|
| 23 |
# Set the working directory to the user's home directory
|
| 24 |
WORKDIR $HOME
|
| 25 |
-
RUN
|
| 26 |
-
RUN
|
| 27 |
|
| 28 |
CMD ["nginx","-g","daemon off;"]
|
|
|
|
| 17 |
RUN useradd -m -u 1000 user
|
| 18 |
# Switch to the "user" user
|
| 19 |
USER user
|
| 20 |
+
|
| 21 |
# Set home to the user's home directory
|
| 22 |
ENV HOME=/home/user \
|
| 23 |
PATH=/home/user/.local/bin:$PATH
|
| 24 |
# Set the working directory to the user's home directory
|
| 25 |
WORKDIR $HOME
|
| 26 |
+
RUN mkdir /usr/share/nginx/html/app
|
| 27 |
+
RUN chown usr /usr/share/nginx/html/app
|
| 28 |
|
| 29 |
CMD ["nginx","-g","daemon off;"]
|