File tree 2 files changed +39
-0
lines changed 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Use an official Python runtime as a parent image
2
+ FROM node
3
+
4
+ # Set the working directory to /app
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ ADD . /app
9
+
10
+ # Install
11
+ RUN npm install
12
+
13
+ # Make port 3333 available to the world outside this container
14
+ EXPOSE 3333
15
+
16
+ # Run app.py when the container launches
17
+ CMD ["npm" , "start" ]
Original file line number Diff line number Diff line change 4
4
* npm start
5
5
* dev server runs at http://localhost:3333/participationreports/
6
6
7
+ # Docker instructions
8
+
9
+ Assuming docker is installed from:
10
+
11
+ https://www.docker.com/community-edition
12
+
13
+ Build docker image within this directory with with:
14
+
15
+ ```
16
+ docker build -t particpation-reports .
17
+ ```
18
+
19
+ Run docker container with:
20
+
21
+ ```
22
+ docker run -p "80:3333" particpation-reports
23
+ ```
24
+
25
+ Browse to:
26
+
27
+ [ http://localhost/participationreports/ ] ( http://localhost/participationreports/ )
28
+
You can’t perform that action at this time.
0 commit comments