-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
51 lines (42 loc) · 1.14 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
FROM node:12
USER root
RUN echo "deb http://deb.debian.org/debian bullseye main \
deb-src http://deb.debian.org/debian bullseye main \
deb http://deb.debian.org/debian-security/ bullseye-security main \
deb-src http://deb.debian.org/debian-security/ bullseye-security main \
deb http://deb.debian.org/debian bullseye-updates main \
deb-src http://deb.debian.org/debian bullseye-updates main" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y \
ca-certificates \
gconf-service \
libasound2 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libdbus-1-3 \
libgconf-2-4 \
libgdk-pixbuf2.0-0 \
libgbm-dev \
libgtk-3-0 \
libnspr4 \
libnss3 \
libx11-xcb1 \
libxss1 \
libxtst6 \
fonts-liberation \
libappindicator3-1 \
xdg-utils \
lsb-release \
wget \
curl
RUN mkdir /mapgl-ruler
RUN adduser ubuntu
RUN chown ubuntu:ubuntu /mapgl-ruler
WORKDIR /mapgl-ruler
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN npm cache clean --force
RUN npm ci
COPY --chown=ubuntu:ubuntu . .
USER ubuntu