16 lines
310 B
Docker
16 lines
310 B
Docker
FROM oven/bun:1 AS base
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json bun.lockb prisma ./
|
|
|
|
ENV NODE_ENV=production
|
|
RUN bun test
|
|
|
|
FROM base AS release
|
|
COPY --from=install /temp/prod/node_modules node_modules
|
|
COPY --from=prerelease /usr/src/app/ .
|
|
|
|
USER bun
|
|
EXPOSE 8443/tcp
|
|
ENTRYPOINT [ "bun", "run", "src/start.ts" ]
|