Last active
April 14, 2020 09:01
-
-
Save sdejean28/c1b0a93a164c02f17270d69c3ab2806e 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=<personal-token> | |
ARG GITHUB_ACCOUNT=<username> | |
ARG REPOSITORY=<your_repository> | |
ARG DIRECTORY=<your application directory> | |
ARG BRANCH=master | |
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