Skip to content

Commit 03048cd

Browse files
committed
Additional updates
1 parent e9a03a1 commit 03048cd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# use an official Node.js runtime as a parent image
2+
FROM node
3+
4+
# set the working directory to /app
5+
WORKDIR /app
6+
7+
COPY package*.json ./
8+
9+
# run npm install to install app dependencies
10+
RUN npm install
11+
12+
# copy the current directory contents into the container at /app
13+
COPY . .
14+
15+
# get access to docker
16+
ENV DOCKERVERSION=19.03.12
17+
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
18+
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
19+
&& rm docker-${DOCKERVERSION}.tgz
20+
21+
# Make port 4000 available to the world outside this container
22+
EXPOSE 4000
23+
24+
# Start the app
25+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)