Skip to content

Modern Docker Management, Designed for Everyone

chore: add required deps and restructure docker file

Kyle Mendell9b93ea385809
diff --git a/Dockerfile b/Dockerfile
index e80da9b7c..4fdf3311c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,19 +3,20 @@ ARG BUILD_TAGS=""
# Stage 1: Build Frontend
FROM node:24 AS frontend-builder
-RUN corepack enable
+RUN corepack enable && corepack prepare [email protected] --activate
WORKDIR /build
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY frontend/package.json ./frontend/package.json
+COPY frontend ./frontend
+
ENV NODE_OPTIONS="--max-old-space-size=3072"
-RUN pnpm install
+RUN pnpm -C frontend install --frozen-lockfile
-COPY frontend ./frontend
ENV BUILD_PATH=dist
-RUN pnpm build
+RUN pnpm -C frontend build
# Stage 2: Build Backend
FROM golang:1.25-alpine AS backend-builder
@@ -34,12 +35,7 @@ COPY --from=frontend-builder /build/frontend/dist ./frontend/dist
# Build backend binary
RUN CGO_ENABLED=1 \
GOOS=linux \
- go build \
- -tags "${BUILD_TAGS}" \
- -ldflags='-w -s' \
- -trimpath \
- -o /build/arcane \
- ./cmd/main.go
+ go build -tags "${BUILD_TAGS}" -ldflags='-w -s' -trimpath -o /build/arcane ./cmd/main.go
# Stage 3: Production Image
FROM alpine:3 AS runner
diff --git a/frontend/package.json b/frontend/package.json
index 46b0475f3..ff849b20c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -25,7 +25,8 @@
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.6.14",
- "svelte-codemirror-editor": "^1.4.1"
+ "svelte-codemirror-editor": "^1.4.1",
+ "@codemirror/language": "^6.10.2"
},
"devDependencies": {
"@eslint/compat": "^1.3.2",