mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 14:44:05 +00:00
Revert "feat: improve docker layers (#803)"
This reverts commit 75db48348a.
This commit is contained in:
@@ -1,10 +1,3 @@
|
|||||||
# Source-control & editors
|
|
||||||
.git
|
|
||||||
.github
|
|
||||||
.vscode
|
|
||||||
.idea
|
|
||||||
*.swp
|
|
||||||
|
|
||||||
files/
|
files/
|
||||||
dist/
|
dist/
|
||||||
logs/
|
logs/
|
||||||
@@ -23,7 +16,3 @@ docker-manifest-unstable.tmpl
|
|||||||
/frontend/node_modules/
|
/frontend/node_modules/
|
||||||
/frontend/.direnv
|
/frontend/.direnv
|
||||||
/frontend/dist
|
/frontend/dist
|
||||||
|
|
||||||
# OS
|
|
||||||
.DS_Store
|
|
||||||
Thumbs.db
|
|
||||||
|
|||||||
12
Dockerfile
12
Dockerfile
@@ -7,15 +7,11 @@ ENV PNPM_CACHE_FOLDER=.cache/pnpm/
|
|||||||
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
||||||
ENV CYPRESS_INSTALL_BINARY=0
|
ENV CYPRESS_INSTALL_BINARY=0
|
||||||
|
|
||||||
# First copy lockfile & manifest => they rarely change
|
|
||||||
COPY frontend/pnpm-lock.yaml frontend/package.json ./
|
|
||||||
RUN npm install -g corepack && corepack enable && \
|
|
||||||
pnpm fetch --prod # installs into cache only
|
|
||||||
|
|
||||||
# Copy the rest => invalidates only when code changes
|
|
||||||
COPY frontend/ ./
|
COPY frontend/ ./
|
||||||
RUN pnpm install --frozen-lockfile --offline && \
|
|
||||||
pnpm run build
|
RUN npm install -g corepack && corepack enable && \
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline && \
|
||||||
|
pnpm run build
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM ghcr.io/techknowlogick/xgo:go-1.23.x@sha256:d45f463381d025efa2fa0fb8617d2b04694e650bfd5d206ae1ef13d0c78fdea6 AS apibuilder
|
FROM --platform=$BUILDPLATFORM ghcr.io/techknowlogick/xgo:go-1.23.x@sha256:d45f463381d025efa2fa0fb8617d2b04694e650bfd5d206ae1ef13d0c78fdea6 AS apibuilder
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user