maybe fix
This commit is contained in:
parent
53d1b68341
commit
4d8f7391ea
3 changed files with 11 additions and 7 deletions
|
@ -1,16 +1,15 @@
|
|||
FROM oven/bun:latest AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY .. .
|
||||
RUN bun install --prod
|
||||
RUN bun run build
|
||||
|
||||
FROM oven/bun:latest AS production
|
||||
|
||||
FROM oven/bun:latest AS prod
|
||||
WORKDIR /app
|
||||
|
||||
RUN bun install --prod
|
||||
COPY --from=build /app /app
|
||||
|
||||
EXPOSE 3001
|
||||
CMD ["bun", "start", "-p", "3001"]
|
||||
CMD ["bun", "run", "start"]
|
||||
|
|
Reference in a new issue