This commit is contained in:
parent
046007af21
commit
3d2904c6f0
@ -12,12 +12,16 @@ WORKDIR /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
||||
# Copy the depends
|
||||
COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
||||
COPY --from=depends /app/node_modules ./node_modules
|
||||
|
||||
# Build the common library
|
||||
COPY --from=depends /app/projects/common ./projects/common
|
||||
RUN bun i -g typescript
|
||||
RUN bun --filter '@ssr/common' build
|
||||
|
||||
COPY --from=depends /app/node_modules ./node_modules
|
||||
COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
||||
# Copy the backend project
|
||||
COPY --from=depends /app/projects/backend ./projects/backend
|
||||
|
||||
CMD ["bun", "run", "--filter", "backend", "start"]
|
Reference in New Issue
Block a user