mirror of
https://github.com/maputnik/editor.git
synced 2026-07-28 08:47:27 +00:00
- Added a Dockerfile to allow the editor to be served using docker containers
- Updated README with docker instructions
This commit is contained in:
+15
@@ -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
|
||||||
@@ -72,6 +72,26 @@ npm install --save-dev eslint eslint-plugin-react
|
|||||||
npm run lint
|
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
|
## Sponsors
|
||||||
|
|
||||||
This project would not be possible without commercial and individual sponsors.
|
This project would not be possible without commercial and individual sponsors.
|
||||||
|
|||||||
Reference in New Issue
Block a user