diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ed095bd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules +.nuxt +.output +dist +.git diff --git a/Dockerfile b/Dockerfile index 76dc6af..92f4502 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-alpine AS base +FROM node:22-slim AS base RUN corepack enable FROM base AS deps diff --git a/docker-compose.yml b/docker-compose.yml index 9d85360..d14eb41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,6 @@ services: app: + container_name: beta-pihkaal-me image: git.pihkaal.me/pihkaal/pihkaal-me:latest restart: unless-stopped networks: diff --git a/modules/asset-generator.ts b/modules/asset-generator.ts index 7463c91..691b875 100644 --- a/modules/asset-generator.ts +++ b/modules/asset-generator.ts @@ -2,7 +2,7 @@ import { defineNuxtModule, useLogger } from "@nuxt/kit"; import { readdir, readFile, writeFile } from "fs/promises"; import { join, relative, parse } from "path"; import { existsSync, watch } from "fs"; -import { execSync } from "child_process"; +// import { execSync } from "child_process"; import sharp from "sharp"; type AtlasRect = { @@ -251,10 +251,10 @@ ${sp} }`; await writeFile(atlasOutputPath, atlasBuffer); - execSync( - `magick "${atlasOutputPath}" -define webp:lossless=true -define webp:method=6 "${atlasOutputPath}"`, - { stdio: "pipe" }, - ); + // execSync( + // `magick "${atlasOutputPath}" -define webp:lossless=true -define webp:method=6 "${atlasOutputPath}"`, + // { stdio: "pipe" }, + // ); const imageTree = buildImageTree(imagePaths, rects); imageCode = generateImageCode(imageTree);