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