Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM codercom/code-server:latest
|
| 2 |
+
|
| 3 |
+
USER root
|
| 4 |
+
|
| 5 |
+
# Install basic dev tools (curl, git, python, etc.)
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
curl \
|
| 8 |
+
git \
|
| 9 |
+
python3 \
|
| 10 |
+
python3-pip \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
+
# Set the working directory to the standard HF storage path
|
| 14 |
+
WORKDIR /home/coder/project
|
| 15 |
+
|
| 16 |
+
# Configure code-server to run on port 7860 and disable telemetry
|
| 17 |
+
# Use --auth password to protect your IDE
|
| 18 |
+
ENTRYPOINT ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password", "--disable-telemetry", "."]
|