0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

Updated Dockerfile - added proper signal handling

This commit is contained in:
markpeterfejes 2017-07-04 18:10:41 +02:00
parent da0618c442
commit 32709843fb
No known key found for this signature in database
GPG key ID: 6A97D9BAD9763C3B

View file

@ -1,11 +1,17 @@
FROM node:6-alpine
FROM node:alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
RUN apk --no-cache add openssl && \
wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \
chmod +x /usr/local/bin/dumb-init && \
apk del openssl
ENV APPDIR /usr/local/app
RUN mkdir -p "$APPDIR"
WORKDIR $APPDIR
ADD . $APPDIR
RUN npm install
RUN mkdir -p /verdaccio/storage /verdaccio/conf
@ -22,4 +28,6 @@ EXPOSE $PORT
VOLUME ["/verdaccio"]
CMD ["sh", "-c", "${APPDIR}/bin/verdaccio --config /verdaccio/conf/config.yaml --listen 0.0.0.0:${PORT}"]
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD $APPDIR/bin/verdaccio --config /verdaccio/conf/config.yaml