kjelsrud.dev/Dockerfile
SindreKjelsrud 267a10a1cd
All checks were successful
Deploy website / build-and-deploy (push) Successful in 6m15s
💚 Update workflow for forgejo instance
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
2024-12-06 22:52:11 +01:00

18 lines
278 B
Docker

FROM node:lts-alpine AS build
WORKDIR /app
RUN npm install -g pnpm
COPY . /app
RUN pnpm install
RUN pnpm run build
FROM caddy:alpine
COPY --from=build /app/dist /usr/share/caddy
EXPOSE 4321
CMD ["caddy", "file-server", "--root", "/usr/share/caddy", "--listen", ":4321"]