Skip to content

Build Locally using Docker

Matthew Crouch edited this page Feb 1, 2021 · 4 revisions

Step 1.

Clone github repo https://github.com/wavded/ogre.git

Step 2.

Create Dockerfile at root level and place the following code.

FROM osgeo/gdal

USER root

WORKDIR ./

COPY ./package.json /home/app/package.json

RUN apt-get update

RUN apt-get -y install curl gnupg

RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -

RUN apt-get -y install nodejs

RUN npm install -g ogre

EXPOSE 3000

CMD ogre

Step 3.

docker build -t ogre:v1 .

Step 4.

docker run -d --name ogre -p 3000:3000 ogre:v1