This commit is contained in:
parent
0ca780f4aa
commit
53d1b68341
@ -1,9 +1,16 @@
|
|||||||
FROM oven/bun:1 AS base
|
FROM oven/bun:latest AS build
|
||||||
USER root
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
COPY .. /usr/src/app
|
WORKDIR /app
|
||||||
RUN bun install
|
|
||||||
|
|
||||||
EXPOSE 3000/tcp
|
ENV NODE_ENV=production
|
||||||
ENTRYPOINT [ "bun", "start" ]
|
COPY .. .
|
||||||
|
RUN bun install --prod
|
||||||
|
|
||||||
|
FROM oven/bun:latest AS production
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN bun install --prod
|
||||||
|
|
||||||
|
EXPOSE 3001
|
||||||
|
CMD ["bun", "start", "-p", "3001"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user