diff options
| author | Ahmed Abdelhalim <[email protected]> | 2023-08-10 15:57:04 +0300 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2023-08-10 15:57:04 +0300 |
| commit | 7cfc751cc84743b8e2bba8c8d614966526dc83a9 (patch) | |
| tree | 373007aa075e2688d75f58560c60d22b8a28b113 /Dockerfile | |
| parent | f722d20725586ee4744d077770ef7a89ab05e360 (diff) | |
Update Readme and deploy hugo site
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"] |
