Added Express.js example

This commit is contained in:
dub-flow
2024-05-16 12:21:48 +02:00
parent bc0faa45b2
commit 2f74d3fcb3
7 changed files with 779 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node:alpine
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy the package.json and package-lock.json files
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 5000
# Define the command to run the app
CMD ["node", "app.js"]