mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
23 lines
406 B
Docker
23 lines
406 B
Docker
FROM oven/bun:1.1.45-alpine AS base
|
|
RUN apk add --no-cache git wget
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lockb ./
|
|
# Make sure these files are present before installing
|
|
RUN bun install --frozen-lockfile
|
|
|
|
# Now copy the rest of your source code
|
|
COPY . .
|
|
|
|
#FROM base AS build
|
|
|
|
#ENV NODE_ENV=production
|
|
|
|
#RUN bun run build
|
|
|
|
FROM base AS release
|
|
USER bun
|
|
EXPOSE 3000/tcp
|
|
ENTRYPOINT [ "bun", "run", "index.ts" ]
|