-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dep:* scripts, upgrade to latest versions * Bump package version to 8.6.0 * Update environment variable to be correct for central-services-logger
- Loading branch information
Showing
4 changed files
with
1,589 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
FROM node:10.15.3-alpine | ||
FROM node:10.15.3-alpine as builder | ||
USER root | ||
|
||
WORKDIR /opt/central-event-processor | ||
|
||
RUN apk --no-cache add git | ||
RUN apk add --no-cache -t build-dependencies make gcc g++ python libtool autoconf automake \ | ||
&& cd $(npm root -g)/npm \ | ||
&& npm config set unsafe-perm true \ | ||
&& npm install -g node-gyp | ||
&& cd $(npm root -g)/npm \ | ||
&& npm config set unsafe-perm true \ | ||
&& npm install -g node-gyp | ||
|
||
COPY package.json package-lock.json* /opt/central-event-processor/ | ||
|
||
RUN npm install --production && \ | ||
npm uninstall -g npm | ||
RUN npm install | ||
|
||
COPY src /opt/central-event-processor/src | ||
COPY config /opt/central-event-processor/config | ||
COPY app.js /opt/central-event-processor/ | ||
COPY docs /opt/central-event-processor/docs | ||
|
||
RUN apk del build-dependencies | ||
FROM node:10.15.3-alpine | ||
|
||
WORKDIR /opt/central-event-processor | ||
|
||
COPY --from=builder /opt/central-event-processor . | ||
RUN npm prune --production | ||
|
||
# Create empty log file & link stdout to the application log file | ||
RUN mkdir ./logs && touch ./logs/combined.log | ||
RUN ln -sf /dev/stdout ./logs/combined.log | ||
|
||
EXPOSE 3080 | ||
CMD node app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.