From 50ad127b53649cae1ac626f6aca44cbde891565e Mon Sep 17 00:00:00 2001 From: Aditya Prima Date: Thu, 12 Sep 2024 00:46:44 +0700 Subject: [PATCH] Updated CMD for rootless nginx --- Dockerfile.alpine | 4 ++-- Dockerfile.alpine-rootless | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 24653cf..01655ec 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -4,8 +4,6 @@ ARG ALPINE_VERSION=3.20 FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION} LABEL maintainer=" aprimediet@gmail.com" -WORKDIR /app - # INSTALL WGET AND REQUIRED BUILD TOOLS RUN --mount=type=cache,target=/var/cache/apk \ apk update && apk upgrade && apk add \ @@ -24,6 +22,8 @@ ADD ./app . RUN apk del curl && \ rm -rf /var/cache/apk/* +WORKDIR /app + CMD ["nginx"] EXPOSE 80 \ No newline at end of file diff --git a/Dockerfile.alpine-rootless b/Dockerfile.alpine-rootless index 6be6f1a..3370f20 100644 --- a/Dockerfile.alpine-rootless +++ b/Dockerfile.alpine-rootless @@ -32,6 +32,6 @@ WORKDIR /app USER nginx -CMD ["nginx", "-g", "daemon off;"] +CMD ["nginx"] EXPOSE 80 \ No newline at end of file