-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (58 loc) · 2 KB
/
Dockerfile
File metadata and controls
66 lines (58 loc) · 2 KB
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
65
66
FROM cypress/browsers:node10.16.0-chrome77
# SETUP-LOCALE
RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends locales \
&& apt-get clean \
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& sed -i -e 's/# hu_HU.UTF-8 UTF-8/hu_HU.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen
ENV LANG="en_US.UTF-8" \
LANGUAGE= \
LC_CTYPE="en_US.UTF-8" \
LC_NUMERIC="hu_HU.UTF-8" \
LC_TIME="hu_HU.UTF-8" \
LC_COLLATE="en_US.UTF-8" \
LC_MONETARY="hu_HU.UTF-8" \
LC_MESSAGES="en_US.UTF-8" \
LC_PAPER="hu_HU.UTF-8" \
LC_NAME="hu_HU.UTF-8" \
LC_ADDRESS="hu_HU.UTF-8" \
LC_TELEPHONE="hu_HU.UTF-8" \
LC_MEASUREMENT="hu_HU.UTF-8" \
LC_IDENTIFICATION="hu_HU.UTF-8" \
LC_ALL=
# SETUP-TIMEZONE
RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends tzdata \
&& apt-get clean \
&& echo 'Europe/Budapest' > /etc/timezone && rm /etc/localtime \
&& ln -snf /usr/share/zoneinfo/'Europe/Budapest' /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& apt-get install -y \
docker-ce
# Install OpenJDK-8
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get install -y ant && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME
RUN usermod -u 1002 node && groupmod -g 1002 node && gpasswd -a node docker