Skip to content

Commit b7cc0bf

Browse files
committed
Updated optimized dockerfile
1 parent b7ce702 commit b7cc0bf

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ FROM node
33
# Set the working directory to /app
44
WORKDIR /app
55

6-
ENV DOCKERVERSION=19.03.12
7-
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
8-
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
9-
&& rm docker-${DOCKERVERSION}.tgz
10-
116
COPY package*.json ./
127

138
# Run npm install to install app dependencies
149
RUN npm install
1510

11+
# Set the PATH env variable
12+
# ENV PATH="/usr/local/bin:${PATH}"
13+
# COPY /usr/local/bin/docker /usr/local/bin/docker
14+
ENV DOCKERVERSION=19.03.12
15+
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
16+
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
17+
&& rm docker-${DOCKERVERSION}.tgz
18+
1619
# Copy the current directory contents into the container at /app
1720
COPY . .
1821

0 commit comments

Comments
 (0)