Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.13 KB

spaceapi.net Website

CircleCI Docker Image

Docker Based Setup

First, build the image:

$ docker build -t spaceapi/website:latest .

Then start a container:

$ docker run --rm --name spaceapi -d -p 8080:80 spaceapi/website:latest

The website should now run on localhost:8080.

If you want, you can also mount the local source code into the container for easier development:

$ docker run --rm --name spaceapi -d -p 8080:80 -v $(pwd)/src/:/var/www/html/ spaceapi/website:latest

To watch the logs:

$ docker log -f spaceapi

To stop and remove the container:

$ docker stop spaceapi

Docker Image

The Docker image is automatically built and published to https://hub.docker.com/r/spaceapi/website/ when pushing to master.