diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -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"] |
