refactor: adjust docker image creation

This commit is contained in:
Karl-Philipp Wulfert
2019-07-05 16:05:23 +02:00
parent 92c9604f8d
commit c34b736edd
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,14 @@
FROM docker:stable
RUN apk update && apk add nodejs npm git
ADD . /opt/openstapps/projectmanagement
WORKDIR /opt/openstapps/projectmanagement
RUN npm ci && \
npm run build && \
chmod +x /opt/openstapps/projectmanagement/lib/cli.js && \
ln -s /opt/openstapps/projectmanagement/lib/cli.js /usr/bin/openstapps-projectmanagement
CMD []