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

Easy configuration for listen protocol

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

View file

@ -1,4 +1,4 @@
FROM node:alpine
FROM node:8.1.2-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
RUN apk --no-cache add openssl && \
@ -24,10 +24,12 @@ RUN addgroup -S verdaccio && adduser -S -g verdaccio verdaccio && \
USER verdaccio
ENV PORT 4873
ENV PROTOCOL http
EXPOSE $PORT
VOLUME ["/verdaccio"]
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD $APPDIR/bin/verdaccio --config /verdaccio/conf/config.yaml
CMD $APPDIR/bin/verdaccio --config /verdaccio/conf/config.yaml --listen $PROTOCOL://0.0.0.0:${PORT}