Skip to content

Commit 49767ed

Browse files
committed
chore: Update Dockerfile for Node.js 14 runtime and dependencies
1 parent bedee50 commit 49767ed

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

contribs/generic-app.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,19 @@ structure:
109109
- .github/dependabot.yml:
110110
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/dependabot.yml
111111
- Dockerfile:
112-
content:
112+
content: |
113113
# Use an official Node.js runtime as the base image
114114
FROM node:14
115-
116115
# Set the working directory in the container
117116
WORKDIR /app
118-
119117
# Copy package.json and package-lock.json
120118
COPY package*.json ./
121-
122119
# Install Node.js dependencies
123120
RUN npm install
124-
125121
# Copy the application code
126122
COPY . .
127-
128123
# Expose the port the app runs on
129124
EXPOSE 3000
130-
131125
# Run the application
132126
CMD ["npm", "start"]
133127
- .dockerignore:

0 commit comments

Comments
 (0)