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