fix(docker): repair build
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m0s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m0s
NOTE: remove imagemagick for now
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
|
RUN corepack enable
|
||||||
|
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: beta-pihkaal-me
|
||||||
image: git.pihkaal.me/pihkaal/pihkaal-me:latest
|
image: git.pihkaal.me/pihkaal/pihkaal-me:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { defineNuxtModule, useLogger } from "@nuxt/kit";
|
|||||||
import { readdir, readFile, writeFile } from "fs/promises";
|
import { readdir, readFile, writeFile } from "fs/promises";
|
||||||
import { join, relative, parse } from "path";
|
import { join, relative, parse } from "path";
|
||||||
import { existsSync, watch } from "fs";
|
import { existsSync, watch } from "fs";
|
||||||
import { execSync } from "child_process";
|
// import { execSync } from "child_process";
|
||||||
import sharp from "sharp";
|
import sharp from "sharp";
|
||||||
|
|
||||||
type AtlasRect = {
|
type AtlasRect = {
|
||||||
@@ -251,10 +251,10 @@ ${sp} }`;
|
|||||||
|
|
||||||
await writeFile(atlasOutputPath, atlasBuffer);
|
await writeFile(atlasOutputPath, atlasBuffer);
|
||||||
|
|
||||||
execSync(
|
// execSync(
|
||||||
`magick "${atlasOutputPath}" -define webp:lossless=true -define webp:method=6 "${atlasOutputPath}"`,
|
// `magick "${atlasOutputPath}" -define webp:lossless=true -define webp:method=6 "${atlasOutputPath}"`,
|
||||||
{ stdio: "pipe" },
|
// { stdio: "pipe" },
|
||||||
);
|
// );
|
||||||
|
|
||||||
const imageTree = buildImageTree(imagePaths, rects);
|
const imageTree = buildImageTree(imagePaths, rects);
|
||||||
imageCode = generateImageCode(imageTree);
|
imageCode = generateImageCode(imageTree);
|
||||||
|
|||||||
Reference in New Issue
Block a user