Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -7,7 +7,7 @@ ENV NODE_VERSION 18
|
|
| 7 |
|
| 8 |
# Install necessary packages
|
| 9 |
RUN apt-get update && \
|
| 10 |
-
apt-get install -y curl bash npm
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Install NVM
|
|
@@ -22,7 +22,7 @@ RUN source $NVM_DIR/nvm.sh && \
|
|
| 22 |
nvm alias default $NODE_VERSION
|
| 23 |
|
| 24 |
# Set the working directory
|
| 25 |
-
WORKDIR /
|
| 26 |
|
| 27 |
# Install code-server globally with unsafe-perm
|
| 28 |
RUN npm install -g code-server --unsafe-perm
|
|
@@ -31,4 +31,4 @@ RUN npm install -g code-server --unsafe-perm
|
|
| 31 |
EXPOSE 7680
|
| 32 |
|
| 33 |
# Start code-server on port 7680
|
| 34 |
-
CMD ["code-server", "--port", "7680"]
|
|
|
|
| 7 |
|
| 8 |
# Install necessary packages
|
| 9 |
RUN apt-get update && \
|
| 10 |
+
apt-get install -y curl bash npm&& \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Install NVM
|
|
|
|
| 22 |
nvm alias default $NODE_VERSION
|
| 23 |
|
| 24 |
# Set the working directory
|
| 25 |
+
WORKDIR /code
|
| 26 |
|
| 27 |
# Install code-server globally with unsafe-perm
|
| 28 |
RUN npm install -g code-server --unsafe-perm
|
|
|
|
| 31 |
EXPOSE 7680
|
| 32 |
|
| 33 |
# Start code-server on port 7680
|
| 34 |
+
CMD ["code-server", "--port", "7680"]
|