likhonsheikh commited on
Commit
2e5bd69
·
verified ·
1 Parent(s): 303ba1e

Create Dockerfiles

Browse files
Files changed (1) hide show
  1. Dockerfiles +30 -0
Dockerfiles ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM codercom/code-server:latest
2
+
3
+ # Set environment variables to disable authentication
4
+ ENV PASSWORD=""
5
+ ENV DISABLE_TELEMETRY=true
6
+
7
+ # Create a workspace directory
8
+ RUN mkdir -p /workspace
9
+ WORKDIR /workspace
10
+
11
+ # Install additional tools if needed
12
+ USER root
13
+ RUN apt-get update && apt-get install -y \
14
+ git \
15
+ curl \
16
+ wget \
17
+ python3 \
18
+ python3-pip \
19
+ nodejs \
20
+ npm \
21
+ && rm -rf /var/lib/apt/lists/*
22
+
23
+ # Switch back to coder user
24
+ USER coder
25
+
26
+ # Expose the port that code-server runs on
27
+ EXPOSE 7860
28
+
29
+ # Start code-server with no authentication
30
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "--disable-telemetry", "/workspace"]