mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 15:05:22 +02:00
Fix clientfile
This commit is contained in:
parent
1c10306d6c
commit
77e5901efe
2 changed files with 5 additions and 5 deletions
|
@ -5,8 +5,6 @@ FROM node:18-alpine3.18 as builder
|
|||
|
||||
WORKDIR /app
|
||||
COPY ./dist/apps/client ./yarn.lock ./prisma ./package.json ./
|
||||
COPY ./apps/client/env.sh /env.sh
|
||||
RUN chmod +x /env.sh
|
||||
# Install dependencies
|
||||
RUN yarn install --production=false
|
||||
|
||||
|
@ -15,10 +13,14 @@ RUN yarn install --production=false
|
|||
# ------------------------------------------
|
||||
FROM node:18-alpine3.18 as prod
|
||||
|
||||
COPY ./apps/client/env.sh /env.sh
|
||||
RUN chmod +x /env.sh
|
||||
|
||||
# Used for container health checks and env handling
|
||||
RUN apk add --no-cache curl gawk
|
||||
WORKDIR /app
|
||||
USER node
|
||||
COPY --from=builder --chown=node:node /app .
|
||||
|
||||
CMD ["/env.sh", "npx", "next", "start"]
|
||||
ENTRYPOINT ["/env.sh"]
|
||||
CMD ["npx", "next", "start"]
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# ------------------------------------------
|
||||
# BUILD STAGE
|
||||
# ------------------------------------------
|
||||
# Full Node image must be used for node_modules install
|
||||
# TODO - Upgrade to v18.x (LTS) when this issue is resolved - https://github.com/prisma/prisma/issues/10649#issuecomment-1249209025
|
||||
FROM node:18-alpine3.18 as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue