-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.Dockerfile
57 lines (45 loc) · 1.53 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 <hi@nullables.io>"
LABEL organization="nullables.io"
LABEL io.nullables.wotd.build-date=$BUILD_DATE
LABEL io.nullables.wotd.name="wotd"
LABEL io.nullables.wotd.description="Styled Word of the Day"
LABEL io.nullables.wotd.url="https://nullables.io/"
LABEL io.nullables.wotd.vcs-ref=$VCS_REF
LABEL io.nullables.wotd.vcs-url="https://github.com/AlexRogalskiy/wotd"
LABEL io.nullables.wotd.vendor="Nullables.io"
LABEL io.nullables.wotd.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_10.x | bash -
RUN sudo apt-get update && apt-get -y install yarn nodejs
USER gitpod
WORKDIR $HOME