Skip to content

Commit ba3da86

Browse files
authored
Merge pull request #178 from atombrella/feature/dockerfile
Add support for local development with Docker
2 parents 1507fed + b799329 commit ba3da86

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CODE_OF_CONDUCT.md
2+
Dockerfile
3+
LICENSE
4+
tools

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:alpine
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
COPY . ./
7+
8+
RUN apk add --no-cache git && \
9+
npm install
10+
11+
ENTRYPOINT ["npm", "run", "watch"]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ $ npm run watch
1818

1919
This starts a local webserver that will automatically reload your changes.
2020

21+
Alternatively, you can use [Docker](https://www.docker.com/) to run the local webserver to avoid
22+
cluttering your local environment with npm dependencies. You first need to build the docker:
23+
24+
```bash
25+
docker build -t moz-ssl-config-gen:latest .
26+
```
27+
28+
You can then run the webserver:
29+
30+
```bash
31+
docker run -p 3001:3001 -p 5500:5500 moz-ssl-config-gen:latest
32+
```
33+
2134
## Adding new software
2235

2336
There are two places that need to be updated in order to add support for a new piece of software:

0 commit comments

Comments
 (0)