Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T01:37:28.000Z (3 months ago)
- Last Synced: 2024-08-06T03:47:18.141Z (3 months ago)
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
Awesome Lists containing this project
README
[![Docker build](http://dockeri.co/image/wh1isper/aws-cli-pypi)](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 .
```