-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitpod.Dockerfile
57 lines (45 loc) · 1.64 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
#!/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="sensiblemetrics.io"
LABEL io.sensiblemetrics.gitpod.build-date=$BUILD_DATE
LABEL io.sensiblemetrics.gitpod.name="java-patterns"
LABEL io.sensiblemetrics.gitpod.description="Java Design Patterns Docs"
LABEL io.sensiblemetrics.gitpod.url="https://sensiblemetrics.io/"
LABEL io.sensiblemetrics.gitpod.vcs-ref=$VCS_REF
LABEL io.sensiblemetrics.gitpod.vcs-url="https://github.com/AlexRogalskiy/java-patterns"
LABEL io.sensiblemetrics.gitpod.vendor="Sensiblemetrics.io"
LABEL io.sensiblemetrics.gitpod.version=$VERSION
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 \
software-properties-common \
build-essential \
xvfb \
curl \
libgtk-3-0 \
unzip
RUN sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN sudo echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN sudo curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN sudo apt-get update && apt-get -y install yarn nodejs
USER gitpod
WORKDIR $HOME