https://github.com/wh1isper/aws-cli-pypi
Build aws cli pypi image everyday
https://github.com/wh1isper/aws-cli-pypi
Last synced: about 1 month ago
JSON representation
Build aws cli pypi image everyday
- Host: GitHub
- URL: https://github.com/wh1isper/aws-cli-pypi
- Owner: Wh1isper
- Created: 2024-04-02T16:43:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T02:59:50.000Z (3 months ago)
- Last Synced: 2025-04-13T05:46:02.757Z (about 1 month ago)
- Language: Dockerfile
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
Awesome Lists containing this project
README
[](https://hub.docker.com/r/wh1isper/aws-cli-pypi)
**Build everyday, so you don't need to worry any outdated packages for security.**
Usage: Build your docker with aws codeartifact pypi access.
```Dockerfile
FROM wh1isper/aws-cli-pypi as awscliARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEYENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}# Use this to disable cache
ARG CACHE_FLAG
RUN aws codeartifact login --tool pip --repository morph-dev --domain morph --domain-owner 293550735226 --region us-west-2FROM python:python:3.10.12-slim-bookworm
COPY --from=awscli /root/.config/pip/pip.conf /root/.config/pip/pip.conf
RUN pip install
```Build with args like:
```bash
docker build --build-arg AWS_ACCESS_KEY_ID= --build-arg AWS_SECRET_ACCESS_KEY= --build-arg CACHE_FLAG="$(date)" -t -f .
```