A Dockerfile for building FromThePage and running a development server.
- Test the build with
docker build .
- Tag the build with
docker build -t fromthepage .
- Run the build with
docker run -d -p 3000 -v $(pwd):/data --name fromthepage_dev fromthepage
(the-v
flag maps the current working directory into a data volume to persist the SQLite database in your host directory) - Find the mapped port with
docker port fromthepage_dev 3000
, then access it in a browser
docker-compose build
docker-compose up -d
- Find the mapped port with
docker-compose port fromthepage 3000
, then access it in a browser