chore: Update Dockerfile to use correct pnpm install command
All checks were successful
Update Memento Dev on VPS / deploy (push) Successful in 4m15s

This commit is contained in:
Gauthier Daniels 2025-04-17 18:01:30 +02:00
parent f0da2bb2ed
commit 965534659e
6 changed files with 20 additions and 2 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
**/node_modules/
**/.pnpm-store/
**/dist/
.git

View File

@ -41,7 +41,7 @@ jobs:
VPS_PATH: ${{ secrets.VPS_PATH }}
VPS_PORT: ${{ secrets.VPS_PORT }}
run: |
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose-prod.yml build --no-cache"
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose-prod.yml build"
echo "📦 The application have been builded on the VPS."
- name: Start the application

View File

@ -22,6 +22,8 @@ export default {
bodyAttributes: {
class: "flex min-h-full bg-white dark:bg-slate-900",
},
// prerender: true,
prefetchStaticAssets: "hover",
extends: vikeReact,

View File

@ -0,0 +1,6 @@
import { docsService } from "@/services/DocsService";
export async function onBeforePrerenderStart() {
const allDocumentations = await docsService.getUrls("certifications");
return allDocumentations;
}

View File

@ -0,0 +1,6 @@
import { docsService } from "@/services/DocsService";
export async function onBeforePrerenderStart() {
const allDocumentations = await docsService.getUrls("docs");
return allDocumentations;
}

View File

@ -6,7 +6,7 @@ RUN npm install -g pnpm
COPY ./app/package.json ./app/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --production
RUN pnpm install --frozen-lockfile --prod false
COPY ./app /app