mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
feat: docker layer cache (#808)
This commit is contained in:
committed by
GitHub
parent
bb7c322768
commit
865a7640da
11
Dockerfile
11
Dockerfile
@@ -7,11 +7,14 @@ ENV PNPM_CACHE_FOLDER=.cache/pnpm/
|
||||
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
||||
ENV CYPRESS_INSTALL_BINARY=0
|
||||
|
||||
COPY frontend/ ./
|
||||
|
||||
COPY frontend/pnpm-lock.yaml frontend/package.json frontend/.npmrc ./
|
||||
COPY frontend/patches ./patches
|
||||
RUN npm install -g corepack && corepack enable && \
|
||||
pnpm install --frozen-lockfile --prefer-offline && \
|
||||
pnpm run build
|
||||
pnpm fetch # installs into cache only
|
||||
|
||||
RUN pnpm install --frozen-lockfile --offline
|
||||
COPY frontend/ ./
|
||||
RUN pnpm run build
|
||||
|
||||
FROM --platform=$BUILDPLATFORM ghcr.io/techknowlogick/xgo:go-1.23.x@sha256:d45f463381d025efa2fa0fb8617d2b04694e650bfd5d206ae1ef13d0c78fdea6 AS apibuilder
|
||||
|
||||
|
||||
Reference in New Issue
Block a user