Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +12 -13
Dockerfile
CHANGED
@@ -1,23 +1,22 @@
|
|
1 |
FROM codercom/code-server:latest
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
|
6 |
# Install Python and Node.js
|
7 |
-
RUN
|
8 |
-
|
9 |
-
curl -fsSL https://deb.nodesource.com/setup_18.x |
|
10 |
-
|
11 |
|
12 |
-
#
|
13 |
-
|
14 |
|
15 |
-
#
|
16 |
-
|
17 |
-
ENV PASSWORD=""
|
18 |
|
19 |
# Expose port for Hugging Face Spaces
|
20 |
EXPOSE 7860
|
21 |
|
22 |
-
#
|
23 |
-
CMD ["code-server", "--auth=none", "--bind-addr", "0.0.0.0:7860", "
|
|
|
1 |
FROM codercom/code-server:latest
|
2 |
|
3 |
+
# Switch to root user
|
4 |
+
USER root
|
5 |
|
6 |
# Install Python and Node.js
|
7 |
+
RUN apt-get update && \
|
8 |
+
apt-get install -y python3 python3-pip curl && \
|
9 |
+
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
10 |
+
apt-get install -y nodejs
|
11 |
|
12 |
+
# Create the working directory as root
|
13 |
+
RUN mkdir -p /animesh
|
14 |
|
15 |
+
# Set the working directory
|
16 |
+
WORKDIR /animesh
|
|
|
17 |
|
18 |
# Expose port for Hugging Face Spaces
|
19 |
EXPOSE 7860
|
20 |
|
21 |
+
# Run code-server as root without authentication
|
22 |
+
CMD ["code-server", "--auth=none", "--bind-addr", "0.0.0.0:7860", "/animesh"]
|