From 7216e867d5d4a6fcc9320718c128c9c544ee5ce1 Mon Sep 17 00:00:00 2001 From: ScribblerCoder <35840617+ScribblerCoder@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:36:48 +0300 Subject: [PATCH] Update comments --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index b591e67..3fac15c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,5 @@ +# A multistage Dockerfile. The first stage is the builder image then +# we copy all needed dependencies to the final image to reduce size FROM node:lts-alpine as builder # Install dependencies @@ -24,6 +26,7 @@ FROM node:lts-alpine as server WORKDIR /app +# Copy the application from the previous stage (without extra packages installed through apk/apt) COPY --from=builder /app ./ # Expose the port and start the application