-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcaptain-definition
24 lines (24 loc) · 1.28 KB
/
captain-definition
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"schemaVersion": 2,
"dockerfileLines": [
"FROM node:12.18.3-buster-slim@sha256:dd6aa3ed10af4374b88f8a6624aeee7522772bb08e8dd5e917ff729d1d3c3a4f",
"RUN apt-get update",
"RUN apt-get install -y wget gnupg ca-certificates",
"RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -",
"RUN sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'",
"RUN apt-get update",
"RUN apt-get install -y google-chrome-stable",
"RUN rm -rf /var/lib/apt/lists/*",
"RUN wget --quiet https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/sbin/wait-for-it.sh",
"RUN chmod +x /usr/sbin/wait-for-it.sh",
"RUN mkdir -p /usr/src/app",
"WORKDIR /usr/src/app",
"COPY ./package.json /usr/src/app/",
"RUN npm install && npm cache clean --force",
"COPY ./ /usr/src/app",
"ENV NODE_ENV production",
"ENV PORT 80",
"EXPOSE 80",
"CMD [ \"npm\", \"start\" ]"
]
}