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:
parent
32709843fb
commit
e1d447c450
1 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue