summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 4 insertions, 12 deletions
diff --git a/Dockerfile b/Dockerfile
index 98c4f35..545dff8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,7 @@
-FROM node:18 as build
+FROM alpine:3.18 as build
+RUN apk add --no-cache hugo
WORKDIR /app
-COPY package.json yarn.lock .
-
-RUN yarn install --all
COPY . .
-RUN yarn build
-
-
-FROM busybox:1.36
-RUN adduser -D static
-WORKDIR /home/static
-COPY --from=build /app/public .
-CMD ["busybox", "httpd", "-f", "-v", "-p", "3333"]
+RUN hugo
+CMD ["hugo", "serve", "--bind", "0.0.0.0"]