-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkspaces-node.yaml
53 lines (46 loc) · 1.23 KB
/
workspaces-node.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
id: workspaces-node
namespace: <SET_NAMESPACE>
description: Docker base image for working with NodeJS in Coder Workspaces
labels:
env: dev
project: <SET_PROJECT>
tasks:
- id: build
type: io.kestra.plugin.docker.Build
pull: true
dockerfile: |
FROM node:22.13
USER root
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
# Install baseline packages
RUN apt-get update && \
apt-get install --yes \
bash \
npm \
nodejs \
build-essential \
htop \
jq \
python3 \
python3-pip \
sudo \
systemd \
systemd-sysv \
unzip \
vim \
wget \
tmux \
git \
rsync
# Modify base image user `node` so that you're not developing as the `root` user
RUN echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd
USER node
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
tags:
- ghcr.io/<GITHUB_USER_NAME>/workspaces-node-nvm:0.22
push: true
credentials:
registry: ghcr.io
username: <GITHUB_USER_NAME>
password: <GITHUB_CLASSIC_TOKEN>