Created
March 20, 2024 22:40
-
-
Save ahmedrowaihi/8b818ddce795bd65e1ffb94d82ed1f8c 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
# ################################################################################ | |
# # Install AWS CLI | |
RUN apk add --no-cache python3 py3-pip | |
RUN pip3 install --break-system-packages --upgrade pip | |
RUN pip3 install --break-system-packages awscli | |
ARG AWS_REGION | |
ARG AWS_ACCESS_KEY_ID | |
ARG AWS_SECRET_ACCESS_KEY | |
ARG AWS_BUCKET | |
# # Set environment variables | |
ENV AWS_DEFAULT_REGION=${AWS_REGION} | |
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} | |
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} | |
ENV AWS_BUCKET_NAME=${AWS_BUCKET} | |
# UPDATE GLTF FILES | |
RUN aws s3 sync ./public/assets s3://${AWS_BUCKET_NAME}/assets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment