Skip to content

Commit 6e5dfbb

Browse files
committed
Merging develop with prod_dhp
1 parent 6f4c295 commit 6e5dfbb

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
# use an official Node.js runtime as a parent image
1+
# Use an official Node.js runtime as a parent image
22
FROM node
3-
4-
# set the working directory to /app
3+
# Set the working directory to /app
54
WORKDIR /app
65

76
COPY package*.json ./
87

9-
# run npm install to install app dependencies
8+
# Run npm install to install app dependencies
109
RUN npm install
1110

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
1614
ENV DOCKERVERSION=19.03.12
1715
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
1816
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
1917
&& rm docker-${DOCKERVERSION}.tgz
2018

19+
# Copy the current directory contents into the container at /app
20+
COPY . .
21+
2122
# Make port 4000 available to the world outside this container
2223
EXPOSE 4000
2324

2425
# Start the app
2526
CMD ["npm", "start"]
27+
28+

0 commit comments

Comments
 (0)