diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..d96eeaa2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git +.sass-cache +public +resources diff --git a/Dockerfile b/Dockerfile index ec4456c2..18d6f3ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,5 @@ FROM alpine:3.19.1 RUN apk add --no-cache bash hugo=0.120.4-r3 WORKDIR /app COPY . ./ + +CMD ["hugo", "server", "--disableLiveReload", "--bind=0.0.0.0", "--port=3000", "--baseURL=https://danbarber.me", "--appendPort=false"] diff --git a/Procfile b/Procfile deleted file mode 100644 index c78065e7..00000000 --- a/Procfile +++ /dev/null @@ -1,2 +0,0 @@ -release: hugo -v -web: hugo server --disableLiveReload --bind '0.0.0.0' --port ${PORT} --baseURL 'https://danbarber.me' --appendPort=false diff --git a/Staticfile b/Staticfile deleted file mode 100644 index 8b137891..00000000 --- a/Staticfile +++ /dev/null @@ -1 +0,0 @@ - diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 3e9c75f6..00000000 --- a/netlify.toml +++ /dev/null @@ -1,30 +0,0 @@ -[build] -publish = "public" -command = "hugo --gc --minify -b $URL" - -[context.production.environment] -HUGO_VERSION = "0.80.0" -HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" - -[context.split1] -command = "hugo --gc --minify --enableGitInfo" - -[context.split1.environment] -HUGO_VERSION = "0.80.0" -HUGO_ENV = "production" - -[context.deploy-preview] -command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" - -[context.deploy-preview.environment] -HUGO_VERSION = "0.80.0" - -[context.branch-deploy] -command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" - -[context.branch-deploy.environment] -HUGO_VERSION = "0.80.0" - -[context.next.environment] -HUGO_ENABLEGITINFO = "true" diff --git a/nixpacks.toml b/nixpacks.toml deleted file mode 100644 index 74373d3f..00000000 --- a/nixpacks.toml +++ /dev/null @@ -1,11 +0,0 @@ -[phases.setup] -aptPkgs = ["hugo"] - -[phases.build] -cmds = ["hugo --minify"] - -[environment] -HUGO_VERSION = "0.120.4" - -[[nixpacks.included_files]] -paths = ["/public"]