Optimize apk install process in Dockerfile (#553)

This commit is contained in:
Peter Dave Hello
2023-12-04 21:29:12 +08:00
committed by GitHub
parent 9c77dfbddd
commit c3ae38df8b

View File

@@ -42,9 +42,7 @@ ARG name
RUN addgroup --system --gid 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
RUN sed -i 's/https/http/' /etc/apk/repositories RUN apk add --no-cache curl ca-certificates \
RUN apk add curl \
&& apk add ca-certificates \
&& update-ca-certificates && update-ca-certificates
# copy running files # copy running files