1# Use the official image as a parent image.
2FROM node:current-slim
3
4# Set the working directory.
5WORKDIR /usr/src/app
6
7# Copy the file from your host to your current location.
8COPY package.json .
9
10# Run the command inside your image filesystem.
11RUN npm install
12
13# Inform Docker that the container is listening on the specified port at runtime.
14EXPOSE 8080
15
16# Run the specified command within the container.
17CMD [ "npm", "start" ]
18
19# Copy the rest of your app's source code from your host to your image filesystem.
20COPY . .
21
1RUN apt-get install python3
2CMD echo "Hello world"
3ENTRYPOINT echo "Hello world"
4