chore: update Dockerfile and docker-compose for improved deployment process; add deploy script

This commit is contained in:
asepharyana
2026-07-05 22:06:52 +07:00
parent 20b622c4c2
commit bbf420759b
10 changed files with 236 additions and 23 deletions
+4 -6
View File
@@ -3,16 +3,14 @@ FROM oven/bun:alpine AS builder
WORKDIR /usr/src/app
# Install dependencies (including devDependencies for build and lint)
COPY package.json tsconfig.json biome.json ./
# Install dependencies (devDependencies included for build)
COPY package.json tsconfig.json ./
RUN bun install
# Copy src and test directories
# Copy source
COPY src ./src
COPY test ./test
# Run lint and build
RUN bun run lint
# Build (lint is run locally before deploy)
RUN bun run build
# Stage 2: Runner