Skip to content

Instantly share code, notes, and snippets.

@sdejean28
Last active April 14, 2020 09:01
Show Gist options
  • Save sdejean28/c1b0a93a164c02f17270d69c3ab2806e to your computer and use it in GitHub Desktop.
Save sdejean28/c1b0a93a164c02f17270d69c3ab2806e to your computer and use it in GitHub Desktop.
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