-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (26 loc) · 1.07 KB
/
Dockerfile
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
FROM buildpack-deps:focal
RUN set -ex; \
useradd -m -s /bin/bash codespace; \
groupadd -g 800 docker; \
usermod -aG docker,sudo codespace; \
echo codespace:codespace | chpasswd; \
export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
apt-get install --yes apt-utils lsb-release; \
apt-get install --yes tzdata libicu66 sudo vim python3-pip python3-venv; \
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -; \
VERSION=node_12.x; \
DISTRO=$(lsb_release -s -c); \
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list; \
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list; \
apt-get update; \
apt-get install --yes nodejs; \
apt-get clean --yes;
ENV SHELL=/bin/bash
WORKDIR /tmp
COPY --chown=codespace:codespace install install/
RUN ./install/system/install.sh;
USER codespace
RUN ./install/user/install.sh; \
rm -rf /tmp/* /home/codespace/.cache/*;
WORKDIR /home/codespace