-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 1.11 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
# Project: symmio
# Description: -
FROM node:lts
######################################################################
# LABELS
######################################################################
ARG COMMIT_ID
ARG COMMIT_TIMESTAMP
ARG COMMIT_AUTHOR
ARG BUILD_APPLICATION
ARG BUILD_DATE
ARG VERIFY_MUON_SIG
LABEL org.vcs.CommitId=${COMMIT_ID}
LABEL org.vcs.CommitTimestamp=${COMMIT_TIMESTAMP}
LABEL org.vcs.CommitAuthor=${COMMIT_AUTHOR}
LABEL org.build.Application=${BUILD_APPLICATION}
LABEL org.build.Date=${BUILD_DATE}
######################################################################
# BUILD STAGE
######################################################################
RUN npm config set fetch-retries 10
RUN npm config set fetch-retry-mintimeout 20000
RUN npm install -g npm
RUN mkdir /app
COPY package.json /app/
WORKDIR /app
RUN npm install --ignore-scripts
RUN mkdir -p /app/symmio
COPY . /app/symmio
WORKDIR /app/symmio
RUN cp .env.example .env
RUN ln -s /app/node_modules .
RUN npm run postinstall
RUN if [ "$VERIFY_MUON_SIG" != "true" ] ; then python3 utils/update_sig_checks.py 1 ; fi
RUN ./docker/compile.sh