0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00
verdaccio/Dockerfile

24 lines
519 B
Text
Raw Normal View History

FROM node:alpine
2016-05-09 14:19:35 -03:00
ENV appdir /usr/local/app
2016-05-09 14:19:35 -03:00
RUN mkdir -p $appdir
WORKDIR $appdir
COPY . $appdir
RUN npm install
2016-05-09 14:19:35 -03:00
RUN mkdir -p /verdaccio/storage /verdaccio/conf
2016-05-09 14:19:35 -03: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
2016-05-09 14:19:35 -03:00
EXPOSE 4873
VOLUME ["/verdaccio"]
2016-05-09 14:19:35 -03:00
CMD ["sh", "-c", "${appdir}/bin/verdaccio --config /verdaccio/conf/config.yaml --listen 0.0.0.0:4873"]