Created
April 28, 2023 16:48
-
-
Save AngelChaidez/e758e47134af4425e5a23a2fbc6cac90 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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