Spaces:
Sleeping
Sleeping
OneApiHarmon
commited on
Commit
•
883b04d
1
Parent(s):
c76b9b7
Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# Set a password for authentication
|
11 |
+
ENV PASSWORD="PrivatePass123#"
|
12 |
+
|
13 |
+
# Copy any additional extensions or settings you want to include
|
14 |
+
# For example, if you have a list of extensions in a file called extensions.txt:
|
15 |
+
# COPY extensions.txt /home/coder/extensions.txt
|
16 |
+
# RUN cat /home/coder/extensions.txt | xargs -n 1 code-server --install-extension
|
17 |
+
|
18 |
+
# Start Visual Studio Code Server on container startup with password protection
|
19 |
+
ENTRYPOINT ["dumb-init", "code-server", "--bind-addr", "0.0.0.0:7860", ".", "--auth", "none"]
|