-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
35 lines (24 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Use Bun as base image
FROM oven/bun:1-alpine
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apk add --no-cache openssl procps bash curl
# Copy package files
COPY package.json bun.lockb ./
# Copy Prisma schema
COPY prisma ./prisma
# Install dependencies
RUN bun install --frozen-lockfile --ignore-scripts
# Generate Prisma Client
RUN bunx prisma generate
# Copy all application files
COPY . .
# Make entrypoint executable
RUN chmod +x /app/docker-entrypoint.sh
# Set environment
ENV NODE_ENV=production
# Use entrypoint
ENTRYPOINT ["/app/docker-entrypoint.sh"]
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s CMD pgrep -f bun || exit 1