From 41254be851257a68802888e7313952ed6213f369 Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Sun, 3 Nov 2024 13:45:09 +0100 Subject: [PATCH] Dockerfile: remove frontend build steps --- Dockerfile | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62d46d3..9afa5b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,3 @@ -FROM node:23-slim AS frontend-builder -RUN corepack enable -WORKDIR /frontend -COPY crates/frontend/frontend/package.json /frontend/package.json -RUN pnpm install -COPY crates/frontend/frontend /frontend -RUN pnpm build -# Templates will be in /frontend/dist/templates -# Assets will be in /frontend/dist/assets - - FROM rust:1.82-alpine AS builder # We need to statically link C dependencies like sqlite, otherwise we get # exec /usr/local/bin/rustical: no such file or directory @@ -17,7 +6,6 @@ RUN apk add --no-progress build-base; \ rustup target add x86_64-unknown-linux-musl WORKDIR /rustical COPY . . -COPY --from=frontend-builder /frontend/dist crates/frontend/frontend/dist RUN --mount=type=cache,target=target cargo install --target x86_64-unknown-linux-musl --path . FROM scratch