Merge pull request 'fix(build): Dockerfile.web klonar repot (Coolify dockerfile-app har tom build-kontext)' (#21) from fix/coolify-selfclone-20261110 into main
CI (SIAX Cloud) / sonar (push) Failing after 7s
Component conformance / Component conformance (blocking) (push) Successful in 22s
CI (SIAX Cloud) / security (push) Successful in 23s
CI (SIAX Cloud) / contracts (push) Successful in 1m3s
CI (SIAX Cloud) / quality (push) Successful in 1m59s
CI (SIAX Cloud) / sonar (push) Failing after 7s
Component conformance / Component conformance (blocking) (push) Successful in 22s
CI (SIAX Cloud) / security (push) Successful in 23s
CI (SIAX Cloud) / contracts (push) Successful in 1m3s
CI (SIAX Cloud) / quality (push) Successful in 1m59s
This commit was merged in pull request #21.
This commit is contained in:
+18
-8
@@ -1,14 +1,24 @@
|
||||
# C0PY Web (Next.js) — repo-root build context
|
||||
# C0PY Web (Next.js) — Coolify-bygge.
|
||||
#
|
||||
# Coolify-appen c0py-web är av typen "Dockerfile" och får därför INGEN
|
||||
# källkodskontext (bara denna Dockerfile). Därför klonar imagen repot själv i
|
||||
# stället för att COPY:a från en tom kontext. Repot är publikt, så ingen
|
||||
# credential behövs i bygget.
|
||||
FROM node:22-alpine
|
||||
|
||||
ARG C0PY_REPO=https://git.siax.io/admin/c0py.git
|
||||
ARG C0PY_REF=main
|
||||
|
||||
RUN apk add --no-cache git wget \
|
||||
&& corepack enable \
|
||||
&& corepack prepare pnpm@9.15.9 --activate
|
||||
|
||||
RUN git clone --depth 1 --branch "${C0PY_REF}" "${C0PY_REPO}" /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN corepack enable && corepack prepare pnpm@9.15.9 --activate
|
||||
|
||||
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
|
||||
COPY packages ./packages
|
||||
COPY apps ./apps
|
||||
|
||||
RUN apk add --no-cache wget && pnpm install --frozen-lockfile && pnpm --filter @siax/c0py-web build
|
||||
RUN pnpm install --frozen-lockfile \
|
||||
&& pnpm --filter @siax/c0py-web build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
Reference in New Issue
Block a user