-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (45 loc) · 1.58 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM node:16
#FROM node:14
# Install Cypress dependencies
RUN apt-get update && \
apt-get install -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb \
python-dev \
zip \
jq
# Get necessary repositories and dependencies for yarn
RUN apt-get update && apt-get install -y apt-transport-https && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
# Install the latest yarn, alias it and register proprietary registry
RUN apt-get update && apt-get install -y yarn && \
echo "alias yarn='/usr/bin/yarn'" >> ~/.bashrc && \
yarn config set @namia:registry https://verdaccio.namia.io
# Get pip
# This was "https://bootstrap.pypa.io/get-pip.py" but it caused this error:
# ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead
RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py
# Install pip and AWS EB CLI
# https://forums.aws.amazon.com/thread.jspa?messageID=987041&tstart=0
RUN python get-pip.py
RUN pip install --upgrade pip \
awsebcli==3.19.4 \
awscli botocore
# Install sentry-cli
RUN curl -sL https://sentry.io/get-cli/ | bash
# Expose credentials volume
RUN mkdir ~/.aws
# Change current time zone to Europe/Helsinki Time zone
RUN date && \
cp -f /usr/share/zoneinfo/Europe/Helsinki /etc/localtime && \
date
# Versions of local tools
RUN node -v
RUN npm -v
RUN yarn -v