Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions apps/learner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ FROM node:22.16.0-alpine3.21 AS base
RUN mkdir /app
WORKDIR /app

ENV NODE_ENV="production"

# ----------------------------------------
# Build Stage
# ----------------------------------------
FROM base as build

# Disable `husky`.
ENV HUSKY=0

# Install `pnpm`.
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
Expand All @@ -40,13 +39,12 @@ RUN pnpm --filter="learner" build

# Install production dependencies.
RUN find . -type d -name "node_modules" -prune -exec rm -rf {} +
RUN pnpm --filter="learner" install --offline --ignore-scripts --prod
RUN pnpm --filter="learner" install --offline --prod

# ----------------------------------------
# Production Stage
# ----------------------------------------
FROM base AS production
ENV NODE_ENV="production"

RUN apk add --no-cache ca-certificates

Expand Down
2 changes: 1 addition & 1 deletion apps/learner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check",
"prepare": "svelte-kit sync"
"prepare": "svelte-kit sync || echo ''"
},
"dependencies": {
"@valkey/valkey-glide": "1.3.5-rc13"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "svelte-package",
"test": "vitest",
"prepare": "svelte-kit sync"
"prepare": "svelte-kit sync || echo ''"
},
"exports": {
".": {
Expand Down