Skip to content

Instantly share code, notes, and snippets.

@AngelChaidez
Created April 28, 2023 16:48
Show Gist options
  • Save AngelChaidez/e758e47134af4425e5a23a2fbc6cac90 to your computer and use it in GitHub Desktop.
Save AngelChaidez/e758e47134af4425e5a23a2fbc6cac90 to your computer and use it in GitHub Desktop.
FROM debian:latest
# Install Git
RUN apt-get update && apt-get install -y git
# Clone GitHub repository and configure Git
ARG GITHUB_TOKEN
RUN git clone https://github.com/AngelChaidez/AWS_Python_Workshop.git && \
cd AWS_Python_Workshop && \
git config --global credential.helper store && \
printf "protocol=https\nhost=github.com\nusername=%s\npassword=%s\n" "username" "$GITHUB_TOKEN" | git credential approve
# Set working directory
WORKDIR /app/repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment