Skip to content

Commit

Permalink
Merge pull request #4 from OrigenStudio/feature/add-gsap-uplink
Browse files Browse the repository at this point in the history
refactor: force a specific docker version
  • Loading branch information
alvaro-origen authored Mar 12, 2024
2 parents f70eaa6 + 32633a9 commit 5e04187
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
26 changes: 9 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
# Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/
# Use an alpine node image to install the plugin
FROM node:lts-alpine as builder
FROM verdaccio/verdaccio:5.14.0

# RUN mkdir -p /verdaccio/plugins \
# && cd /verdaccio/plugins \
# && npm install --global-style --no-bin-links --omit=optional verdaccio-auth-memory@latest
USER root

FROM verdaccio/verdaccio:5
ENV NODE_ENV=production

# copy your modified config.yaml into the image
ADD config.yaml /verdaccio/conf/config.yaml
# need it for install global plugins
USER root
# install plugins with npm global
RUN npm install --global verdaccio-github-oauth-ui \
&& npm install --global verdaccio-aws-s3-storage
# back to original user
USER $VERDACCIO_USER_UID
RUN yarn && yarn add verdaccio-github-oauth-ui verdaccio-aws-s3-storage

COPY ./config.yaml /verdaccio/conf

USER verdaccio

CMD /bin/sh -c verdaccio --config /verdaccio/conf/config.yaml --listen $VERDACCIO_PROTOCOL://0.0.0.0:$PORT
CMD node -r ./.pnp.js $VERDACCIO_APPDIR/bin/verdaccio --config /verdaccio/conf/config.yaml --listen $VERDACCIO_PROTOCOL://0.0.0.0:$PORT
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ packages:
publish: github/org/OrigenStudio
proxy: npmjs

log:
logs:
- {type: stdout, format: pretty, level: http}

0 comments on commit 5e04187

Please sign in to comment.