-
Notifications
You must be signed in to change notification settings - Fork 15
Developer Guide || Local Development Web Server
winoooops edited this page Oct 13, 2020
·
1 revision
To debug code and run tests, it is often useful to have a local HTTP server. For the purpose of further deploying the project on AWS, we have made available a local web server with a dockerized code-server.
- Generate a local Docker Image
a. Build from Dockerfile in the root directory
b. Download from DockerHub
docker build -t winoooops/websvf-docker .sudo docker pull winoooops/websvf-docker - Verify the Docker Image exists locally
# You should see the local repository named winoooops/websvf-docker . docker images -a - To start the web server, run
docker run -p 8080:8080 --name websvf winoooops/websvf-docker - To access the local server, enter the following URL into your web browser:
http://0.0.0.0:8080