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

26 lines
607 B
Text
Raw Normal View History

FROM node:6-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
2016-05-09 12:19:35 -05:00
ENV APPDIR /usr/local/app
2016-05-09 12:19:35 -05:00
RUN mkdir -p "$APPDIR"
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
EXPOSE $PORT
2016-05-09 12:19:35 -05:00
VOLUME ["/verdaccio"]
2016-05-09 12:19:35 -05:00
CMD ["sh", "-c", "${APPDIR}/bin/verdaccio --config /verdaccio/conf/config.yaml --listen 0.0.0.0:${PORT}"]