We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a03a1 commit 03048cdCopy full SHA for 03048cd
dockerfile
@@ -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