feat(global): initialize project and framework structure, dockerize
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM oven/bun:1-alpine AS build
|
||||
|
||||
ENV TERM=xterm-256color
|
||||
ENV COLORTERM=truecolor
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add nodejs npm
|
||||
|
||||
COPY package.json bun.lock ./
|
||||
|
||||
RUN bun install --frozen-lockfile --production --ignore-scripts
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun install
|
||||
|
||||
RUN bun --bun run build
|
||||
|
||||
FROM oven/bun:1-alpine AS productions
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/.output /app
|
||||
|
||||
ENTRYPOINT [ "bun", "--bun", "run", "/app/server/index.mjs" ]
|
||||
Reference in New Issue
Block a user