Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -49,6 +49,9 @@ RUN mkdir -p /home/nex/app && cd /home/nex/app && npm init -y && npm install pup
|
|
| 49 |
# Create a non-root user
|
| 50 |
RUN useradd -m -u 1000 nex
|
| 51 |
|
|
|
|
|
|
|
|
|
|
| 52 |
# Install code-server
|
| 53 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 54 |
|
|
|
|
| 49 |
# Create a non-root user
|
| 50 |
RUN useradd -m -u 1000 nex
|
| 51 |
|
| 52 |
+
# Change ownership of the home directory to the non-root user
|
| 53 |
+
RUN chown -R nex:nex /home/nex
|
| 54 |
+
|
| 55 |
# Install code-server
|
| 56 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 57 |
|