From 1d288838416cb6855d456cd8c19c5aafc3c83141 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Thu, 26 Dec 2024 07:38:38 -0500 Subject: [PATCH] updated docker file --- nodejs-mini-message-board/{src => }/.dockerignore | 0 nodejs-mini-message-board/Dockerfile | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename nodejs-mini-message-board/{src => }/.dockerignore (100%) diff --git a/nodejs-mini-message-board/src/.dockerignore b/nodejs-mini-message-board/.dockerignore similarity index 100% rename from nodejs-mini-message-board/src/.dockerignore rename to nodejs-mini-message-board/.dockerignore diff --git a/nodejs-mini-message-board/Dockerfile b/nodejs-mini-message-board/Dockerfile index d92ac04..c22d00e 100644 --- a/nodejs-mini-message-board/Dockerfile +++ b/nodejs-mini-message-board/Dockerfile @@ -1,11 +1,13 @@ FROM node:23-alpine -COPY . /app +COPY package.json package-lock.json /app WORKDIR /app RUN npm install . +COPY --chown nobody:nobody ./src /app + EXPOSE 3000 CMD ["node", "src/app.js"]