Skip to content

Commit

Permalink
Fix Hypercorn config copy and add Curl to Dockerfile (#18)
Browse files Browse the repository at this point in the history
* Fix Hypercorn config copy in Dockerfile

* Add Curl to Dockerfile for development
  • Loading branch information
dinvlad authored and simonjmendelsohn committed Feb 15, 2024
1 parent 8099a12 commit 660e109
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*
!*.py
!*.toml
!requirements*.txt
!/src
!/tests
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ WORKDIR /app

COPY --from=builder /home/nonroot/.local/bin/hypercorn /bin/
COPY --from=builder /home/nonroot/.local/lib /usr/lib/
COPY --from=builder /app/*.py ./
COPY --from=builder /app/*.py /app/*.toml ./
COPY --from=builder /app/src ./src/

# TODO: Remove for production
COPY --from=cgr.dev/chainguard/curl /usr/bin/curl /bin/
COPY --from=cgr.dev/chainguard/curl \
/usr/lib/libcurl.so.4 \
/usr/lib/libnghttp2.so.* \
/usr/lib/libbrotlidec.so.1 \
/usr/lib/libbrotlicommon.so.1 /lib/

ARG APP_VERSION=latest
ARG BUILD_VERSION=latest

Expand Down

0 comments on commit 660e109

Please sign in to comment.