From 059f74a7607c42e3d3880b333ad389553e6a053a Mon Sep 17 00:00:00 2001 From: Ben Hays Date: Sun, 28 Apr 2024 12:59:00 -0400 Subject: [PATCH] Add Hugo Dockerfile --- Dockerfile | 11 +++++++++++ run-docker.sh | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100644 run-docker.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cba6991 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine:latest + +RUN apk add --update hugo + +WORKDIR /opt/app/ + +COPY . . + +EXPOSE 1313 + +CMD ["hugo", "server", "--bind=0.0.0.0", "--baseURL=http://localhost:1313/"] diff --git a/run-docker.sh b/run-docker.sh new file mode 100644 index 0000000..fa6c94c --- /dev/null +++ b/run-docker.sh @@ -0,0 +1,3 @@ +#!/bin/sh +sudo docker build -t personalsite . +sudo docker run -p 1313:1313 personalsite \ No newline at end of file