26 lines
448 B
Docker
26 lines
448 B
Docker
FROM oven/bun:1.1-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install git/curl for healthchecks or db utility scripts
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package.json ./
|
|
|
|
# Install dependencies using bun
|
|
RUN bun install
|
|
|
|
# Copy source configurations
|
|
COPY tsconfig.json ./
|
|
COPY src/ ./src/
|
|
|
|
EXPOSE 3333
|
|
|
|
ENV NODE_ENV=production
|
|
ENV PORT=3333
|
|
|
|
CMD ["bun", "run", "src/index.ts"]
|