mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 23:15:23 +01:00
Merge pull request #15 from chrissng/master
Serve the editor using container
This commit is contained in:
commit
d62575b965
2 changed files with 36 additions and 1 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM nodesource/xenial:6.1.0
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
ENV HOME /maputnik
|
||||
RUN mkdir ${HOME}
|
||||
|
||||
COPY . ${HOME}/
|
||||
|
||||
WORKDIR ${HOME}
|
||||
|
||||
RUN npm install -d --dev
|
||||
RUN npm run build
|
||||
|
||||
CMD npm run start -- --host 0.0.0.0
|
22
README.md
22
README.md
|
@ -72,6 +72,26 @@ npm install --save-dev eslint eslint-plugin-react
|
|||
npm run lint
|
||||
```
|
||||
|
||||
## Docker
|
||||
|
||||
Build the docker image
|
||||
|
||||
```
|
||||
docker build -t maputnik/editor .
|
||||
```
|
||||
|
||||
Start a docker container using the image
|
||||
|
||||
```
|
||||
docker run --name maputnik -p 8888:8888 -d maputnik/editor
|
||||
```
|
||||
|
||||
Stop the container
|
||||
|
||||
```
|
||||
docker stop maputnik
|
||||
```
|
||||
|
||||
## Sponsors
|
||||
|
||||
This project would not be possible without commercial and individual sponsors.
|
||||
|
@ -102,7 +122,7 @@ This project would not be possible without commercial and individual sponsors.
|
|||
- Uli [geOps](http://geops.ch/)
|
||||
- Helge Fahrnberger
|
||||
Kirusanth Poopalasingam
|
||||
|
||||
|
||||
**Stakeholder**
|
||||
|
||||
- Brian Flood
|
||||
|
|
Loading…
Reference in a new issue