fix: repair build
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
.nuxt
|
||||
.output
|
||||
dist
|
||||
.git
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:22-alpine AS base
|
||||
FROM node:22-slim AS base
|
||||
RUN corepack enable
|
||||
|
||||
FROM base AS deps
|
||||
@@ -7,6 +7,7 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
FROM base AS build
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick && rm -rf /var/lib/apt/lists/* && ln -s /usr/bin/convert /usr/local/bin/magick
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
app:
|
||||
container_name: beta-pihkaal-me
|
||||
image: git.pihkaal.me/pihkaal/pihkaal-me:latest
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
||||
@@ -278,7 +278,7 @@ ${sp} }`;
|
||||
}
|
||||
};
|
||||
|
||||
nuxt.hook("build:before", generateAssets);
|
||||
await generateAssets();
|
||||
|
||||
if (nuxt.options.dev) {
|
||||
const watchAndRegenerate = (
|
||||
|
||||
@@ -72,9 +72,7 @@ export default defineNuxtModule({
|
||||
}
|
||||
};
|
||||
|
||||
nuxt.hook("build:before", async () => {
|
||||
await copyWebpFiles();
|
||||
});
|
||||
await copyWebpFiles();
|
||||
|
||||
if (nuxt.options.dev) {
|
||||
nuxt.hook("ready", () => {
|
||||
|
||||
Reference in New Issue
Block a user