This repository was archived by the owner on Aug 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM codercom/enterprise-base:ubuntu
USER root
# Install code-server v3.12.0 for modern extensions
ARG VERSION=3.12.0
ARG ARCH=amd64
RUN curl -L "https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_$ARCH.deb" -o \
"/tmp/code-server_${VERSION}_$ARCH.deb"
RUN dpkg -i "/tmp/code-server_${VERSION}_$ARCH.deb"
# Install Node v14 (should match "engine" in ../package.json)
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
# Install Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y yarn
# Install GitHub CLI (gh)
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
apt-get update && apt-get install -y gh
# Copy our apps and extensions
COPY ./apps /coder/apps
COPY ./extensions /coder/extensions
# Copy configure script
COPY ./configure /coder/configure
USER coder