mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 23:45:21 +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
|
WORKDIR /app
|
||||||
COPY ./dist/apps/client ./yarn.lock ./prisma ./package.json ./
|
COPY ./dist/apps/client ./yarn.lock ./prisma ./package.json ./
|
||||||
COPY ./apps/client/env.sh /env.sh
|
|
||||||
RUN chmod +x /env.sh
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN yarn install --production=false
|
RUN yarn install --production=false
|
||||||
|
|
||||||
|
@ -15,10 +13,14 @@ RUN yarn install --production=false
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
FROM node:18-alpine3.18 as prod
|
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
|
# Used for container health checks and env handling
|
||||||
RUN apk add --no-cache curl gawk
|
RUN apk add --no-cache curl gawk
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
USER node
|
USER node
|
||||||
COPY --from=builder --chown=node:node /app .
|
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
|
# 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
|
FROM node:18-alpine3.18 as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue