💚 Update workflow for forgejo instance
All checks were successful
Deploy website / build-and-deploy (push) Successful in 6m15s
All checks were successful
Deploy website / build-and-deploy (push) Successful in 6m15s
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
parent
2c0141b609
commit
267a10a1cd
4 changed files with 42 additions and 41 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
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"]
|
Loading…
Add table
Add a link
Reference in a new issue