Added more examples

This commit is contained in:
Andras Bacsai
2026-04-10 12:39:59 +02:00
parent b3818d86dd
commit b0d6e95f1b
38 changed files with 6 additions and 693 deletions
-29
View File
@@ -1,29 +0,0 @@
# syntax=docker/dockerfile:1
# Generated by Coolpack
# Provider: node, Framework: vite, Output: static
FROM node:24-slim AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
RUN --mount=type=cache,target=/app/node_modules/.vite --mount=type=cache,target=/app/node_modules/.cache npm run build
FROM caddy:alpine AS runner
RUN addgroup --system --gid 1001 coolgroup && \
adduser --system --uid 1001 -G coolgroup cooluser
COPY --from=builder /app/dist /srv
RUN chown -R cooluser:coolgroup /srv
USER cooluser
EXPOSE 80
CMD ["caddy", "file-server", "--root", "/srv", "--listen", ":80"]