Supra_App/Dockerfile
pakintada@gmail.com 21174fc1ad update: deploy
- add deploy dockerfile, tests ok!

Signed-off-by: pakintada@gmail.com <Pakin>
2026-04-09 11:37:50 +07:00

19 lines
No EOL
424 B
Docker

# Stage 1: Build
FROM oven/bun:latest AS builder
WORKDIR /app
COPY . .
RUN bun install --frozen-lockfile
RUN bun run build
# Stage 2: Production Runtime
FROM oven/bun:latest
WORKDIR /app
# Copy only necessary files from the builder
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json .
ENV PORT=3167
EXPOSE 3167
USER bun
# Run the application from the build directory
CMD ["bun", "build/index.js"]