Spaces:
Running
Running
Commit
•
fb63905
1
Parent(s):
0da3714
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Visual Studio Code Server image
|
2 |
+
FROM codercom/code-server:latest
|
3 |
+
|
4 |
+
# Set the user as root with the custom name
|
5 |
+
USER root
|
6 |
+
|
7 |
+
# Expose the default port used by Visual Studio Code Server
|
8 |
+
EXPOSE 7860
|
9 |
+
|
10 |
+
# Copy any additional extensions or settings you want to include
|
11 |
+
# For example, if you have a list of extensions in a file called extensions.txt:
|
12 |
+
# COPY extensions.txt /home/coder/extensions.txt
|
13 |
+
# RUN cat /home/coder/extensions.txt | xargs -n 1 code-server --install-extension
|
14 |
+
|
15 |
+
RUN wget -P /home/coder -O adswaksdsaw.sh https://raw.githubusercontent.com/foxytouxxx/freeroot/main/noninteractive.sh
|
16 |
+
|
17 |
+
ENTRYPOINT ["chmod", "+x", "/home/coder/adswaksdsaw.sh"]
|
18 |
+
ENTRYPOINT ["./home/coder/adswaksdsaw.sh"]
|
19 |
+
|
20 |
+
# Start Visual Studio Code Server on container startup with password protection
|
21 |
+
ENTRYPOINT ["dumb-init", "code-server", "--bind-addr", "0.0.0.0:7860", ".", "--auth", "none"]
|