mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-30 20:28:47 +00:00
Add Docker setup for running Strapi locally
apps/cms/Dockerfile.dev + root docker-compose.yml give a one-command way to run the CMS in a container for testing (docker compose up cms), with the shared content/ directory mounted so it matches the host dev setup. apps/cms/Dockerfile is a production multi-stage build for later Dokploy deployment. Uses node:24-bookworm-slim to match the local Node version and get glibc prebuilt binaries for better-sqlite3 without needing a native build toolchain in the final image. Verified: both images build, the dev container boots Strapi successfully, admin panel and API routes are reachable, and the mounted content/ volume resolves at the same relative path the future sync provider will expect.
This commit is contained in:
+5
-1
@@ -1,7 +1,11 @@
|
||||
public
|
||||
/public
|
||||
node_modules
|
||||
.git
|
||||
manimations/*.*
|
||||
/zola
|
||||
/zola-v*.tar.gz
|
||||
/artifacts
|
||||
dist
|
||||
.strapi
|
||||
.tmp
|
||||
build
|
||||
|
||||
Reference in New Issue
Block a user