File size: 502 Bytes
6426ece c29e749 6426ece c29e749 6426ece c29e749 4e9b962 c29e749 6426ece c29e749 | 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 | # syntax=docker/dockerfile:1
# For more info: https://huggingface.co/docs/hub/spaces-sdks-docker
FROM oven/bun:1 AS base
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json bun.lock ./
# Install dependencies
RUN bun install --frozen-lockfile
# Copy the rest of the application
COPY . .
# Build the application
RUN bun run build
# Expose port 3000
EXPOSE 3000
# Set environment variable for port
ENV PORT=3000
# Start the application
CMD ["bun", "run", "build/index.js"] |