File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- # use an official Node.js runtime as a parent image
1
+ # Use an official Node.js runtime as a parent image
2
2
FROM node
3
-
4
- # set the working directory to /app
3
+ # Set the working directory to /app
5
4
WORKDIR /app
6
5
7
6
COPY package*.json ./
8
7
9
- # run npm install to install app dependencies
8
+ # Run npm install to install app dependencies
10
9
RUN npm install
11
10
12
- # copy the current directory contents into the container at /app
13
- COPY . .
14
-
15
- # get access to docker
11
+ # Set the PATH env variable
12
+ # ENV PATH="/usr/local/bin:${PATH}"
13
+ # COPY /usr/local/bin/docker /usr/local/bin/docker
16
14
ENV DOCKERVERSION=19.03.12
17
15
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
18
16
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
19
17
&& rm docker-${DOCKERVERSION}.tgz
20
18
19
+ # Copy the current directory contents into the container at /app
20
+ COPY . .
21
+
21
22
# Make port 4000 available to the world outside this container
22
23
EXPOSE 4000
23
24
24
25
# Start the app
25
26
CMD ["npm", "start"]
27
+
28
+
You can’t perform that action at this time.
0 commit comments