mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-24 21:15:51 +01:00
24 lines
532 B
Docker
24 lines
532 B
Docker
FROM node:6-alpine
|
|
|
|
ENV APPDIR /usr/local/app
|
|
|
|
RUN mkdir -p "$APPDIR"
|
|
WORKDIR $APPDIR
|
|
COPY . $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
|
|
|
|
EXPOSE 4873
|
|
|
|
VOLUME ["/verdaccio"]
|
|
|
|
CMD ["sh", "-c", "${APPDIR}/bin/verdaccio --config /verdaccio/conf/config.yaml --listen 0.0.0.0:4873"]
|