Skip to content

Commit

Permalink
fix(frontend): add growthbook fix script to Dockerfile.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
arikkfir committed Aug 29, 2023
1 parent 828c0e7 commit cec6f7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
FROM node:20.5.1 as builder
WORKDIR /workspace
COPY package.json package-lock.json ./
RUN apt-get update && apt-get install -y jq && rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/workspace/.npm \
npm set cache /workspace/.npm && \
npm install
COPY apply-patches.sh ./
COPY fix-growthbook-package-json.sh ./
RUN chmod +x ./apply-patches.sh && ./apply-patches.sh
RUN chmod +x ./fix-growthbook-package-json.sh && ./fix-growthbook-package-json.sh
COPY public ./public
COPY src ./src
COPY .eslintrc.cjs ./
COPY index.html ./
COPY tsconfig.json ./
COPY tsconfig.node.json ./
COPY vite.config.ts ./
COPY vite.docker.config.ts ./
EXPOSE 80
ENTRYPOINT ["npx"]
Expand Down

0 comments on commit cec6f7a

Please sign in to comment.