-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 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 |
---|---|---|
|
@@ -5,14 +5,15 @@ FROM gitlab-registry.cern.ch/db/dbod-web-base:latest | |
|
||
MAINTAINER Ignacio Coterillo <[email protected]> | ||
|
||
USER node | ||
WORKDIR /opt/dbod/ | ||
# Bundle app source | ||
COPY server.js ./dist.tgz /opt/dbod/ | ||
COPY package-server.json /opt/dbod/package.json | ||
COPY server/ /opt/dbod/server | ||
RUN tar xvzf dist.tgz | ||
RUN chown node:node /opt/dbod/sessions && chmod 0777 /opt/dbod/sessions | ||
ENV NODE_EXTRA_CA_CERTS=CERN-CA.pem | ||
USER node | ||
RUN tar xvzf dist.tgz >/dev/null 2>&1 | ||
RUN mkdir -p /opt/dbod/downloads | ||
RUN chown -R node:node /opt/dbod/sessions /opt/dbod/downloads && chmod 0777 /opt/dbod/sessions /opt/dbod/downloads | ||
EXPOSE 3000 | ||
ENV NODE_EXTRA_CA_CERTS=CERN-CA.pem | ||
ENTRYPOINT ["npm", "start"] |