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"]