From 3e82d228dcd08af5aa183b9f9d2d50193fa0aab1 Mon Sep 17 00:00:00 2001 From: Sai Karthik Date: Tue, 21 Nov 2023 20:32:44 +0530 Subject: [PATCH] Dockerfile: rm EXPOSE The EXPOSE is inferred from the base image which in this case is nginx So, we need not expicitely define it. One less layer in final image :) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e9de96b8..ac4f6c69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,9 @@ RUN --mount=type=cache,target=/root/.local/share/pnpm \ FROM nginx:alpine COPY --from=build /app/dist/ /usr/share/nginx/html/ + COPY docker/nginx.conf /etc/nginx/conf.d/default.conf + COPY docker/entrypoint.sh /entrypoint.sh -EXPOSE 80 ENTRYPOINT [ "/entrypoint.sh" ]