chore: add Dockerfile for Node.js application setup

This commit is contained in:
2026-02-27 22:32:20 +01:00
parent edfcb974b9
commit 2a75de4d8a

17
dockerfile Normal file
View File

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