Spaces:
Runtime error
Runtime error
vboxuser commited on
Commit ·
1455995
1
Parent(s): bd1046f
change
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -16,8 +16,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 16 |
|
| 17 |
# Copy the rest of the code and set the ownership to the new user and group
|
| 18 |
COPY . .
|
| 19 |
-
RUN
|
| 20 |
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Switch to the new user
|
| 23 |
USER myapp
|
|
|
|
| 16 |
|
| 17 |
# Copy the rest of the code and set the ownership to the new user and group
|
| 18 |
COPY . .
|
| 19 |
+
RUN chown -R myapp:myapp .
|
| 20 |
|
| 21 |
+
# Create the home directory for the myapp user
|
| 22 |
+
RUN mkdir /home/myapp && chown myapp:myapp /home/myapp && chmod a+rwx /home/myapp
|
| 23 |
|
| 24 |
# Switch to the new user
|
| 25 |
USER myapp
|