Created
April 14, 2020 09:15
-
-
Save sdejean28/f378d41be959de5202281b9debc2aa2f to your computer and use it in GitHub Desktop.
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
FROM node | |
ARG PERSONAL_TOKEN | |
ARG GITHUB_ACCOUNT | |
ARG REPOSITORY | |
ARG DIRECTORY | |
ARG BRANCH | |
RUN git clone -b $BRANCH https://$PERSONAL_TOKEN:x-oauth-basic@github.com/$GITHUB_ACCOUNT/$REPOSITORY.git $DIRECTORY | |
WORKDIR $DIRECTORY | |
RUN npm install | |
CMD ["node", "index.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment