Skip to content

Commit bb51a35

Browse files
committed
chore: Update Dockerfile to use Node.js runtime and install dependencies
1 parent cb862ce commit bb51a35

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

Dockerfile

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1-
FROM alpine:3.17.2
2-
CMD ["echo", "Hello World!"]
1+
# Use an official Node.js runtime as a parent image
2+
FROM node:14
3+
4+
# Set the working directory in the container to /app
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json to the working directory
8+
COPY package*.json ./
9+
10+
# Install any needed packages specified in package.json
11+
RUN npm install
12+
13+
# Bundle app source inside the docker image
14+
COPY . .
15+
16+
# Make port 8080 available to the world outside this container
17+
EXPOSE 8080
18+
19+
# Define the command to run your app using CMD which defines your runtime
20+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)