Skip to content

Commit 8e8b8f4

Browse files
committed
x
1 parent 233eacf commit 8e8b8f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
88
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.9.1 /lambda-adapter /opt/extensions/lambda-adapter
99

1010
# Replace /etc/nginx with a temporary directory for Lambda, where /etc/nginx is read-only
11-
RUN mv /etc/nginx /etc/nginx.base
12-
RUN ln -s /tmp/run/etc-nginx /etc/nginx \
11+
# /run is for /run/nginx.pid
12+
RUN mv /etc/nginx /etc/nginx.base \
13+
&& rm -rf /run && ln -s /tmp/run /run \
14+
&& ln -s /tmp/run/etc-nginx /etc/nginx \
1315
&& rm -rf /etc/nginx.base/conf.d/default.conf \
1416
&& rm -v /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh # We don't use conf.d/default.conf
1517

0 commit comments

Comments
 (0)