Skip to content

Commit

Permalink
Merge pull request #189 from okigan/feature/fix-up-docker-image
Browse files Browse the repository at this point in the history
fixup python shim location and path
  • Loading branch information
okigan authored Oct 23, 2023
2 parents e4e4b4c + 81be369 commit 491e5d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 10 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Some useful commands for local development
### Build docker image
```sh

docker build -t awscurl .

docker run --rm -ti -v "$HOME/.aws:/root/.aws" -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SECURITY_TOKEN -e AWS_PROFILE -e AWS_REGION awscurl "${api_url_base}/api/rxxxxx"

docker run -it --entrypoint sh awscurl
```
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ RUN set -ex && \
libxml2-dev \
openssl-dev

RUN pip install --user botocore

COPY . /app-source-dir

RUN pip install --target=/app/python-packages ./app-source-dir
RUN pip install -v --user /app-source-dir


# Runtime stage
FROM python:3-alpine

COPY --from=builder /app /app
COPY --from=builder /root/.local /root/.local

ENV PATH=/app/python-packages/bin:${PATH}
ENV PYTHONPATH=/app/python-packages
ENV PATH=/root/.local/bin/:${PATH}

ENTRYPOINT ["awscurl"]
ENTRYPOINT ["awscurl"]

0 comments on commit 491e5d1

Please sign in to comment.