This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM public.ecr.aws/lambda/go:1 | |
# Copy function code | |
COPY hello ${LAMBDA_TASK_ROOT} | |
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | |
CMD [ "hello" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prepare required directories for Newrelic installation | |
RUN mkdir -p /var/log/newrelic /var/run/newrelic && \ | |
touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \ | |
chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
# Download and install Newrelic binary | |
export NEWRELIC_VERSION=$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \ | |
cd /tmp && curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \ | |
cd "${NEWRELIC_VERSION}" && \ |