feat: first
Some checks failed
CI / build (push) Has been cancelled
CI / security (push) Has been cancelled
CI / test (22) (push) Has been cancelled
CI / test (20) (push) Has been cancelled
Gitea CI / test (push) Has been cancelled
Gitea CI / docker-build (push) Has been cancelled
Deploy / build-and-deploy (push) Has been cancelled
Deploy / docker-build (push) Has been cancelled

This commit is contained in:
2025-08-13 20:09:04 +02:00
commit 9b257f4b9b
45 changed files with 2168 additions and 0 deletions

37
Dockerfile Normal file
View File

@@ -0,0 +1,37 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json bun.lock* ./
# Install dependencies (try bun first, fallback to npm)
RUN if [ -f bun.lock ]; then \
npm install -g bun && bun install; \
else npm ci; \
fi
# Copy source code
COPY . .
# Build the application
RUN if [ -f bun.lock ]; then \
bun run build; \
else npm run build; \
fi
# Production stage
FROM nginx:alpine
# Copy built files from builder stage
COPY --from=builder /app/build /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]