0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/Dockerfile

36 lines
873 B
Text
Raw Normal View History

2017-07-04 11:53:45 -05:00
FROM node:8.1.2-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
2016-05-09 12:19:35 -05:00
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
2016-05-09 12:19:35 -05:00
WORKDIR $APPDIR
ADD . $APPDIR
RUN npm install
2016-05-09 12:19:35 -05:00
RUN mkdir -p /verdaccio/storage /verdaccio/conf
2016-05-09 12:19:35 -05:00
ADD conf/docker.yaml /verdaccio/conf/config.yaml
RUN addgroup -S verdaccio && adduser -S -g verdaccio verdaccio && \
chown -R verdaccio:verdaccio "$APPDIR" && \
chown -R verdaccio:verdaccio /verdaccio
USER verdaccio
ENV PORT 4873
2017-07-04 11:53:45 -05:00
ENV PROTOCOL http
EXPOSE $PORT
2016-05-09 12:19:35 -05:00
VOLUME ["/verdaccio"]
2016-05-09 12:19:35 -05:00
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
2017-07-04 11:53:45 -05:00
CMD $APPDIR/bin/verdaccio --config /verdaccio/conf/config.yaml --listen $PROTOCOL://0.0.0.0:${PORT}