Skip to content

Create Dockerfile #7286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use the official Node.js image as the base image
FROM node:16-slim

# Install necessary dependencies
RUN apt-get update && apt-get install -y \
curl \
gnupg \
ca-certificates \
lsb-release \
&& rm -rf /var/lib/apt/lists/*

# Install code-server using the custom install.sh script
COPY install.sh /install.sh
RUN bash /install.sh --method standalone --prefix /usr/local

# Expose the port that code-server will run on
EXPOSE 8080

# Set the environment variable for code-server
ENV PASSWORD="your_password_here"

# Command to run code-server
CMD ["code-server", "--host", "0.0.0.0", "--port", "8080"]