-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
42 lines (34 loc) · 1.04 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
# Project: symmio
# Description: -
FROM node:lts
######################################################################
# LABELS
######################################################################
ARG COMMIT_ID
ARG COMMIT_TIMESTAMP
ARG COMMIT_AUTHOR
ARG BUILD_APPLICATION
ARG BUILD_DATE
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 python3 utils/update_sig_checks.py 1
RUN ./docker/compile.sh