-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
35 lines (29 loc) · 1.01 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
FROM node:10-alpine
RUN apk update
RUN apk add --no-cache g++ gcc libgcc libstdc++ linux-headers make python git
RUN git clone --depth 1 https://github.com/slsfi/digital_edition_web.git
WORKDIR /digital_edition_web
COPY src/assets/i18n src/assets/i18n
COPY src/assets/fonts src/assets/fonts
COPY src/assets/images src/assets/images
COPY src/assets/custom_css src/assets/custom_css
COPY scripts scripts
COPY config config
COPY resources resources
RUN mkdir www
RUN npm install
RUN npm install cheerio
RUN npm install rev-hash@3.0.0
RUN npm i -g @ionic/cli
RUN npm i -g cordova
RUN npm i -g native-run
RUN npm i -g @sentry/browser
RUN npm i --save @ionic-native/social-sharing
RUN npm i --save leaflet
RUN npm audit fix
RUN ionic cordova prepare --source-map
RUN ionic cordova platform rm browser --save
RUN ionic cordova platform add browser@latest --save
RUN ionic cordova plugin add cordova-plugin-x-socialsharing
RUN ionic cordova build browser --prod --aot --webpack ./config/webpack.config.js
RUN node ./scripts/cache-busting.js