forked from autotelic/verdaccio-heroku-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from OrigenStudio/feature/add-gsap-uplink
refactor: force a specific docker version
- Loading branch information
Showing
2 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters