Skip to content

Commit

Permalink
merge next
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Yankov committed Mar 13, 2024
2 parents 9e40e32 + 5afe11c commit 794fca1
Show file tree
Hide file tree
Showing 3 changed files with 785 additions and 451 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

RUN npm ci

COPY --chown=node:node . .

RUN npm ci
RUN npm run build


Expand All @@ -25,15 +21,11 @@ USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

COPY --chown=node:node . $APP_HOME
COPY --chown=node:node filter_ownership.aql filter_role_association.aql $APP_HOME
COPY --chown=node:node ./email_templates $APP_HOME/email_templates
COPY --chown=node:node ./cfg $APP_HOME/cfg
COPY --chown=node:node --from=build $APP_HOME/lib $APP_HOME/lib

EXPOSE 50051

USER root
USER node

CMD [ "npm", "start" ]
CMD [ "node", "./lib/start.cjs" ]
Loading

0 comments on commit 794fca1

Please sign in to comment.