-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (42 loc) · 1.04 KB
/
Copy pathDockerfile
File metadata and controls
49 lines (42 loc) · 1.04 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
FROM node:lts-hydrogen
# SETUP SHELL
SHELL ["/bin/bash", "-l", "-c"]
# INSTALL OS PACKAGES
RUN apt-get -y update \
&& apt-get -y install \
curl \
git \
libc6 \
ssh \
libgtk2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnotify-dev \
libnss3 libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb \
&& apt-get -y clean
# INSTALL GIT LFS
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get -y install git-lfs \
&& git lfs install
# INSTALL NVM
ENV NODE_VERSION lts/hydrogen
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& source ~/.bashrc \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION
# ENABLE NODE'S COREPACK
RUN corepack enable
# VERIFY AWS AMPLIFY REQUIREMENTS
RUN curl --version
RUN git --version
RUN ldd --version
RUN node --version
RUN npm --version
RUN ssh -V
# VERIFY OTHER REQUIREMENTS
RUN git lfs --version
RUN nvm --version