-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
64 lines (52 loc) · 1.76 KB
/
.gitpod.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
FROM gitpod/workspace-full:latest
ARG BUILD_DATE="$(git rev-parse --short HEAD)"
ARG VCS_REF="$(date -u +\"%Y-%m-%dT%H:%M:%SZ\")"
ARG VERSION="1.0.0"
ARG HOME_DIR="/home/gitpod"
LABEL maintainer="Alexander Rogalskiy <[email protected]>"
LABEL organization="nullables.io"
LABEL io.nullables.typescript-tools.build-date=$BUILD_DATE
LABEL io.nullables.typescript-tools.name="typescript-tools"
LABEL io.nullables.typescript-tools.description="Typescript tools & utilities"
LABEL io.nullables.typescript-tools.url="https://nullables.io/"
LABEL io.nullables.typescript-tools.vcs-ref=$VCS_REF
LABEL io.nullables.typescript-tools.vcs-url="https://github.com/AlexRogalskiy/quotes"
LABEL io.nullables.typescript-tools.vendor="Nullables.io"
LABEL io.nullables.typescript-tools.version=$VERSION
# Docker build does not rebuild an image when a base image is changed, increase this counter to trigger it.
ENV TRIGGER_REBUILD 3
ENV NODE_VERSION="12.14.1"
ENV LC_ALL en_US.UTF-8
ENV LANG $LC_ALL
ENV HOME $HOME_DIR
USER root
RUN sudo echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
## Disable coredump
RUN sudo /bin/su -c "echo 'Set disable_coredump false' >> /etc/sudo.conf"
RUN sudo apt-get update && \
sudo apt-get -y install \
libgtkextra-dev \
libgconf2-dev \
libnss3 \
libasound2 \
libxtst-dev \
libxss1 \
libxss-dev \
libx11-dev \
libxkbfile-dev \
software-properties-common \
build-essential \
xvfb \
curl \
libgtk-3-0 \
unzip
RUN bash -c ". .nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm install -g yarn"
ENV PATH=$HOME/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH
USER gitpod
WORKDIR $HOME