You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a kickstart for others, this uses a multi-stage build to copy over just the binary (with a version configurable using --build-arg):
EDIT: fix/update commands as I get it working in real life
FROM alpine as pse
ARG PSE_VERSION=1.1.0
ADD https://github.com/cultureamp/parameter-store-exec/releases/download/v${PSE_VERSION}/parameter-store-exec-v${PSE_VERSION}-linux-amd64.tar.gz .
RUN tar -xvzf parameter-store-exec-v${PSE_VERSION}-linux-amd64.tar.gz
FROM <production-base>:<version>
# ... build your production image
ENV PATH=${PATH}:/${PWD}
COPY --from=pse /parameter-store-exec .
# funky but necessary workaround (see https://serverfault.com/a/900708)
RUN /bin/bash -c 'chmod +x parameter-store-exec'
ENTRYPOINT ["parameter-store-exec"]
CMD [...]
Would be helpful for build/install instructions for non-go users. Also saw #8. Maybe something inspired by https://github.com/sendgrid/aws-env/blob/master/Dockerfile
The text was updated successfully, but these errors were encountered: