We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb862ce commit bb51a35Copy full SHA for bb51a35
Dockerfile
@@ -1,2 +1,20 @@
1
-FROM alpine:3.17.2
2
-CMD ["echo", "Hello World!"]
+# Use an official Node.js runtime as a parent image
+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