kjelsrud.dev/Dockerfile
SindreKjelsrud e1db45a3bb
Some checks are pending
Deploy website / build-and-deploy (push) Waiting to run
💚 Update workflow for forgejo instance
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
2024-12-05 17:41:17 +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"]