-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (34 loc) · 1.58 KB
/
Dockerfile
File metadata and controls
38 lines (34 loc) · 1.58 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
FROM node:10.10 AS build-nlmaps
LABEL maintainer="datapunt@amsterdam.nl"
WORKDIR /app
COPY package.json package.json
RUN npm install shx
COPY scripts /app/scripts
COPY config /app/config
RUN npm run nlmaps
FROM node:10.10 AS build-deps
LABEL maintainer="datapunt@amsterdam.nl"
WORKDIR /app
COPY --from=build-nlmaps /app/nlmaps /app/nlmaps
COPY scripts /app/scripts
# fix the jesse apt-get errors by skipping the download.
RUN cat /app/scripts/apt.sources.list > /etc/apt/sources.list
# Fix to
RUN apt-get update
RUN apt-key adv --recv-keys --keyserver hkp://keys.gnupg.net:80 46925553
RUN apt-key adv --recv-keys --keyserver hkp://keys.gnupg.net:80 65FFB764
RUN apt-get install --force-yes -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
COPY package.json package.json
RUN npm install
COPY test /app/test
COPY src /app/src
COPY .eslintrc.js /app/.eslintrc.js
COPY .eslintignore /app/.eslintignore
COPY rollup.index.js /app/rollup.index.js
COPY rollup.pointquery.js /app/rollup.pointquery.js
COPY rollup.multiselect.js /app/rollup.multiselect.js
#build amaps library which is used by test.html
RUN npm run build-amaps
# Web server image
FROM nginx:1.12.2-alpine
COPY --from=build-deps /app/test /usr/share/nginx/html