FROM debian:bookworm-slim | |
RUN apt-get update && apt-get install -y \ | |
curl git unzip \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN curl -fsSL https://bun.sh/install | bash | |
ENV PATH="/root/.bun/bin:$PATH" | |
WORKDIR /app | |
COPY . . | |
RUN git clone https://github.com/zigistry/database ./database --depth=1 | |
RUN bun install --production | |
ENV PORT=7860 | |
EXPOSE $PORT | |
# Run your app | |
CMD ["bun", "src/index.ts"] |