1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/Dockerfile
Christian Bewernitz 9a4f81c2cb allow to configure port for docker
- also works for docker-compose
- updated docs accordingly
- included .dockerignore to speed up build
2017-06-24 11:21:28 +02:00

26 lines
607 B
Docker

FROM node:6-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
ENV APPDIR /usr/local/app
RUN mkdir -p "$APPDIR"
WORKDIR $APPDIR
ADD . $APPDIR
RUN npm install
RUN mkdir -p /verdaccio/storage /verdaccio/conf
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
VOLUME ["/verdaccio"]
CMD ["sh", "-c", "${APPDIR}/bin/verdaccio --config /verdaccio/conf/config.yaml --listen 0.0.0.0:${PORT}"]