Sign inSign up

dimtoolsinc/verdaccio-gitlab

By dimtoolsinc

•Updated over 7 years ago

Verdaccio with gitlab-auth plugin

Image
0

353

dimtoolsinc/verdaccio-gitlab repository overview

⁠Clean image without configuration file.

Dockerfile:

# Inspired by https://github.com/bufferoverflow/verdaccio-gitlab
FROM node:10-alpine as builder

WORKDIR /opt/verdaccio-gitlab-build

ENV NODE_ENV=production \
    VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org/

RUN apk update --no-cache && \
    apk add --no-cache git &&\
    git clone --depth 1 https://github.com/bufferoverflow/verdaccio-gitlab /opt/verdaccio-gitlab-build && \
    yarn config set registry $VERDACCIO_BUILD_REGISTRY && \
    yarn install --production=false && \
    yarn code:docker-build && \
    yarn cache clean && \
    yarn install --production=true --pure-lockfile

FROM verdaccio/verdaccio:3.11.4
USER root

COPY --from=builder /opt/verdaccio-gitlab-build/build /opt/verdaccio-gitlab/build
COPY --from=builder /opt/verdaccio-gitlab-build/package.json /opt/verdaccio-gitlab/package.json
COPY --from=builder /opt/verdaccio-gitlab-build/node_modules /opt/verdaccio-gitlab/node_modules
WORKDIR /usr/src/app/
RUN ln -s /opt/verdaccio-gitlab/build /verdaccio/plugins/verdaccio-gitlab

USER verdaccio

Tag summary

Content type

Image

Digest

Size

236.5 MB

Last updated

over 7 years ago

docker pull dimtoolsinc/verdaccio-gitlab:3.11.6