Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -10
Dockerfile
CHANGED
@@ -6,19 +6,14 @@ RUN sudo apt-get update && \
|
|
6 |
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
|
7 |
sudo apt-get install -y nodejs
|
8 |
|
9 |
-
#
|
10 |
-
WORKDIR /home/coder/
|
11 |
|
12 |
-
#
|
13 |
-
COPY . /home/coder/project
|
14 |
-
|
15 |
-
# Install Python requirements if any
|
16 |
-
RUN pip3 install -r requirements.txt || true
|
17 |
-
|
18 |
-
# Set password (optional)
|
19 |
ENV PASSWORD=hfspace
|
20 |
|
21 |
-
# Expose for
|
22 |
EXPOSE 7860
|
23 |
|
|
|
24 |
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."]
|
|
|
6 |
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
|
7 |
sudo apt-get install -y nodejs
|
8 |
|
9 |
+
# Create working folder
|
10 |
+
WORKDIR /home/coder/animesh
|
11 |
|
12 |
+
# Set default password for VS Code in browser
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
ENV PASSWORD=hfspace
|
14 |
|
15 |
+
# Expose port for Hugging Face Spaces
|
16 |
EXPOSE 7860
|
17 |
|
18 |
+
# Launch VS Code server
|
19 |
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."]
|