-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_node18
62 lines (52 loc) · 1.94 KB
/
Dockerfile_node18
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
FROM nikolaik/python-nodejs:python3.11-nodejs18
# FROM node:16
#FROM node:14
# Install Cypress dependencies
RUN apt-get update
RUN apt-get install -y \
libgtk2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb \
python-dev-is-python3 \
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/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.20.9 \
# awscli botocore
# RUN python3 -m pip install --upgrade pip
# RUN python3 -m pip install --user awscli awsebcli --upgrade
# Install AWS CLI v2
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN rm -rf awscliv2.zip
RUN rm -rf aws
# 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