add gitea action

This commit is contained in:
2025-11-21 14:48:42 +08:00
parent 1812e7cd35
commit bb6b720f33
3 changed files with 78 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# Use Bun runtime image
FROM oven/bun:1-alpine
# Set working directory
WORKDIR /app
# Copy package files first for better caching
COPY package.json bun.lock* ./
# Install dependencies
RUN bun install --frozen-lockfile
# Copy source code
COPY . .
# Build the application
RUN bun run build
# Expose port
EXPOSE 3000
# Set environment to production
ENV NODE_ENV=production
# Start the application
CMD ["bun", "start"]