From 2a75de4d8a8315875c6d8be96f6c2615b3bbc674 Mon Sep 17 00:00:00 2001 From: BolkeDerBaer Date: Fri, 27 Feb 2026 22:32:20 +0100 Subject: [PATCH] chore: add Dockerfile for Node.js application setup --- dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..c75bf05 --- /dev/null +++ b/dockerfile @@ -0,0 +1,17 @@ +# Dockerfile for a simple Node.js app with index.js + +FROM node:18-alpine + +# set working directory +WORKDIR /app + +# copy package files and install dependencies (if any) +# if you don't have package.json you can omit these lines +COPY package*.json ./ +RUN npm install + +# copy the rest of the app +COPY . . + +# default command to run the app +CMD ["node", "index.js"] \ No newline at end of file