1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 08:58:30 -04:00
jarv.is/scripts/docker-server.sh

14 lines
378 B
Bash
Executable File

#!/bin/bash
# Make sure you run this script from the root of the site repository.
echo "Pull latest base image..."
docker pull jakejarvis/hugo-custom:latest
echo "Building Docker image..."
docker build -t jarv.is:develop -f Dockerfile .
echo "Starting live Hugo server..."
echo "Will go live at: http://localhost:1313"
docker run -v $(pwd):/src -p 1313:1313 jarv.is:develop