mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
17 lines
429 B
Docker
17 lines
429 B
Docker
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"]
|