-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 703 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 703 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
# Development Dockerfile with hot-reloading support
FROM oven/bun:latest
WORKDIR /app
# Install PostgreSQL client for database operations
USER root
RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*
# Copy package files
COPY package.json bun.lock* ./
# Install dependencies
RUN bun install
# Copy the rest of the application
COPY . .
RUN chmod +x ./docker-entrypoint.sh
# Expose the development port
EXPOSE 36666
# Set environment variables
ENV NODE_ENV=development
ENV NEXT_TELEMETRY_DISABLED=1
ENV HOSTNAME="0.0.0.0"
ENV PORT=36666
ENV START_CMD="bun dev"
# Run database migrations first, then start the dev server
ENTRYPOINT ["./docker-entrypoint.sh"]