forked from boomerang-io/flow.web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 675 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:alpine
ARG ART_USER
ARG ART_PASSWORD
ARG ART_URL
ENV BMRG_HOME=/opt/boomerang/server
WORKDIR $BMRG_HOME
COPY server .
RUN apk add --no-cache --virtual .build-deps curl && \
curl -k -v -u $ART_USER:$ART_PASSWORD $ART_URL/api/npm/boomeranglib-npm/auth/boomerang -o .npmrc && \
npm install --production && \
rm -f .npmrc && \
apk del .build-deps
# Create user, chown, and chmod.
# OpenShift requires that a numeric user is used in the USER declaration instead of the user name
RUN chmod -R u+x $BMRG_HOME \
&& chgrp -R 0 $BMRG_HOME \
&& chmod -R g=u $BMRG_HOME
USER 2000
EXPOSE 3000
ENTRYPOINT node scripts/rewriteAssetPaths && npm start