1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00
verdaccio/Dockerfile

17 lines
429 B
Docker
Raw Normal View History

2016-05-09 19:19:35 +02:00
FROM node:6.1.0-onbuild
RUN adduser --disabled-password --gecos "" verdaccio && \
mkdir -p /verdaccio/storage /verdaccio/conf && \
chown -R verdaccio.verdaccio /verdaccio
USER verdaccio
WORKDIR /verdaccio
ADD conf/docker.yaml /verdaccio/conf/config.yaml
EXPOSE 4873
VOLUME ["/verdaccio/conf", "/verdaccio/storage"]
CMD ["/usr/src/app/bin/sinopia", "--config", "/verdaccio/conf/config.yaml", "--listen", "0.0.0.0:4873"]