Skip to content

Commit

Permalink
feat(controller): shrink container (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle authored Oct 21, 2023
1 parent 794316f commit d9849fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-pr-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
filters: |
canary-container:
- './.github/workflows/on-pr-update.yaml'
- 'containers/controller/**'
- 'containers/canary/**'
canary-chart:
- './.github/workflows/on-pr-update.yaml'
- 'charts/canary/**'
Expand Down
7 changes: 5 additions & 2 deletions containers/canary/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM alpine:3.18 as base

COPY src/ /opt/

Expand All @@ -13,5 +13,8 @@ RUN apk update && apk add --update --no-cache \
apk del py3-pip && \
rm -rf /var/cache/apk/*

FROM scratch
COPY --from=base / /

ENTRYPOINT ["python3", "/opt/canary.py"]
#CMD ["--help"]
#CMD ["--help"]

0 comments on commit d9849fc

Please sign in to comment.