shows docker swarm stack

This commit is contained in:
Marc Wäckerlin
2018-11-01 21:08:07 +01:00
parent 7096587f3a
commit 4d4f2e9a92
9 changed files with 60 additions and 33 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM mwaeckerlin/base
MAINTAINER mwaeckerlin
ENV PORT 4000
ENV CONTAINERNAME "servicedock"
RUN adduser -D npm
ADD --chown=npm . /app
WORKDIR /app
RUN apk add npm python docker make g++ \
&& npm install npm@latest -g \
&& rm -rf node_modules \
&& npm install \
&& npm audit fix --force \
&& apk del python make g++
#USER npm
EXPOSE $PORT
VOLUME /var/run/docker.sock