Skip to content

Commit 06bf650

Browse files
authored
Create Dockerfile
1 parent e2c489d commit 06bf650

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Use the official Node.js image as the base image
2+
FROM node:16-slim
3+
4+
# Install necessary dependencies
5+
RUN apt-get update && apt-get install -y \
6+
curl \
7+
gnupg \
8+
ca-certificates \
9+
lsb-release \
10+
&& rm -rf /var/lib/apt/lists/*
11+
12+
# Install code-server using the custom install.sh script
13+
COPY install.sh /install.sh
14+
RUN bash /install.sh --method standalone --prefix /usr/local
15+
16+
# Expose the port that code-server will run on
17+
EXPOSE 8080
18+
19+
# Set the environment variable for code-server
20+
ENV PASSWORD="your_password_here"
21+
22+
# Command to run code-server
23+
CMD ["code-server", "--host", "0.0.0.0", "--port", "8080"]

0 commit comments

Comments
 (0)