mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-15 14:53:18 -06:00
Dockerfile: sharp is no longer a production dependency
--omit=dev now leaves it out entirely; better-sqlite3 is the only native module the builder stage still needs a toolchain for.
This commit is contained in:
parent
04e0e8fdf4
commit
92b7d6fc67
|
|
@ -6,7 +6,9 @@
|
||||||
# No TLS in the image: it listens on plain HTTP :3001. Front it with a
|
# No TLS in the image: it listens on plain HTTP :3001. Front it with a
|
||||||
# TLS-terminating reverse proxy / Cloudflare in production.
|
# TLS-terminating reverse proxy / Cloudflare in production.
|
||||||
|
|
||||||
# --- builder: install production deps (native: better-sqlite3, sharp) ---
|
# --- builder: install production deps (better-sqlite3 is the only native one left; image
|
||||||
|
# decoding is pure JS + WASM since sharp was dropped, and sharp is now a devDependency that
|
||||||
|
# --omit=dev leaves out entirely) ---
|
||||||
FROM node:20-slim AS builder
|
FROM node:20-slim AS builder
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
# build toolchain in case a native prebuild is missing for the target arch
|
# build toolchain in case a native prebuild is missing for the target arch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue