mirror of
https://github.com/LukeHagar/subdomain-test.git
synced 2025-12-06 04:21:26 +00:00
Replace pnpm with Bun for package management. Update Dockerfile and README. Co-authored-by: lukeslakemail <lukeslakemail@gmail.com>
26 lines
398 B
Docker
26 lines
398 B
Docker
# Use Bun as the base image
|
|
FROM oven/bun:1.3.0-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package.json bun.lockb ./
|
|
|
|
# Install dependencies
|
|
RUN bun install --frozen-lockfile
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN bun run build
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Set environment
|
|
ENV NODE_ENV=production
|
|
|
|
# Start the application
|
|
CMD ["bun", "run", "start"] |