Skip to content

Commit 7c96861

Browse files
committed
add Dockerfile and instructions
1 parent 9f45c95 commit 7c96861

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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"]

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,25 @@
44
* npm start
55
* dev server runs at http://localhost:3333/participationreports/
66

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+

0 commit comments

Comments
 (0)