Skip to content

Commit

Permalink
Merge branch 'master' into feat/rk-656-refine-foods-storefront-redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz authored May 20, 2024
2 parents 45ccbe6 + 41c3f09 commit 5379b70
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/live-previews/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

FROM base AS deps
ENV CI true

RUN apk add --no-cache libc6-compat openssh-client
FROM base AS deps

COPY package.json pnpm-lock.yaml .npmrc ./

Expand All @@ -18,8 +18,6 @@ COPY --from=deps /app/refine/node_modules ./node_modules

COPY . .

ENV CI true

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --ignore-scripts

RUN pnpm run build --scope @refinedev/live-previews --skipNxCache
Expand All @@ -30,10 +28,8 @@ ENV NODE_ENV production

COPY --from=builder /app/refine/packages/live-previews/public ./public

RUN mkdir .next
RUN chown refine:nodejs .next

COPY --from=builder --chown=refine:nodejs /app/refine/packages/live-previews ./
COPY --from=builder --chown=refine:nodejs /app/refine/packages/live-previews/.next/standalone ./
COPY --from=builder --chown=refine:nodejs /app/refine/packages/live-previews/.next/static ./packages/live-previews/.next/static

USER refine

Expand Down

0 comments on commit 5379b70

Please sign in to comment.