fix(docker): fix Docker image latest tag and production runtime errors; add dev compose file, Codespace support, and semver release tagging (#7) (#4277)
* fix: also tag Docker image as latest on main branch push Agent-Logs-Url: https://github.com/pourmand1376/readest/sessions/bbc0f66e-7488-4d9d-976b-434588b3faa8 * fix: production Dockerfile missing patches/.env.web; add compose.dev.yaml for dev hot-reload Agent-Logs-Url: https://github.com/pourmand1376/readest/sessions/e27bba4e-b8ea-4694-b44d-6308aa778d41 * fix: add devcontainer to init submodules; add clear Dockerfile error when submodules missing Agent-Logs-Url: https://github.com/pourmand1376/readest/sessions/16d24ae0-d2e8-4523-b47e-4969dd587c50 * simplify production-stage: COPY --from=build /app /app instead of selective copies Agent-Logs-Url: https://github.com/pourmand1376/readest/sessions/356fabe4-f944-48b6-a409-41640480d52f * fix: add CI=true to dev compose to prevent pnpm no-TTY abort Agent-Logs-Url: https://github.com/pourmand1376/readest/sessions/ddc30fef-2c76-452d-aad6-d688ca912a1a * fix: add semver Docker image version tags on release Agent-Logs-Url: https://github.com/pourmand1376/readest/sessions/18cbc3c6-ba92-4e63-bef9-93dcf6698c21 --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Overlay on top of compose.yaml.
|
||||
# Usage (from the docker/ directory):
|
||||
# docker compose -f compose.yaml -f compose.dev.yaml up --build -d
|
||||
services:
|
||||
client:
|
||||
build:
|
||||
context: ..
|
||||
target: development-stage
|
||||
args:
|
||||
NEXT_PUBLIC_APP_PLATFORM: web
|
||||
environment:
|
||||
# Required so pnpm does not abort when purging node_modules without a TTY
|
||||
CI: "true"
|
||||
# Mount the source code for hot reload.
|
||||
# Anonymous volumes shadow pre-built dirs inside the image so the
|
||||
# container's installed deps and vendor assets are used instead of
|
||||
# what's on the host.
|
||||
volumes:
|
||||
- ../:/app
|
||||
- /app/node_modules
|
||||
- /app/apps/readest-app/node_modules
|
||||
- /app/apps/readest-app/public/vendor
|
||||
- /app/apps/readest-app/.next
|
||||
- /app/packages/foliate-js/node_modules
|
||||
Reference in New Issue
Block a user