mirror of
https://github.com/zoriya/blog.git
synced 2025-12-06 06:26:10 +00:00
21 lines
294 B
Docker
21 lines
294 B
Docker
FROM oven/bun
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --production
|
|
|
|
COPY index.ts tsconfig.json ./
|
|
|
|
ENV NODE_ENV=production
|
|
RUN bun build \
|
|
--compile \
|
|
--minify-whitespace \
|
|
--minify-syntax \
|
|
--target bun \
|
|
--outfile server \
|
|
./index.ts
|
|
|
|
EXPOSE 3000
|
|
CMD ["./server"]
|
|
|