feat(build): publier les images API+web sur le registry Gitea et faire consommer compose aux packages — compose tire ${READABOOK_REGISTRY}/api|web au lieu de builder, scripts/publish.sh (buildx --push, labels OCI), override docker-compose.build.yaml pour le build local, chemin bibliothèque re-paramétrable via READABOOK_LIBRARY_HOST_PATH — évolution #50
This commit is contained in:
@ -17,6 +17,15 @@ RUN pnpm --filter @readabook/shared build
|
||||
RUN pnpm --filter @readabook/web build
|
||||
|
||||
FROM nginx:1.27-alpine AS runtime
|
||||
ARG OCI_IMAGE_CREATED
|
||||
ARG OCI_IMAGE_REVISION
|
||||
ARG OCI_IMAGE_VERSION=latest
|
||||
LABEL org.opencontainers.image.title="ReadaBook Web" \
|
||||
org.opencontainers.image.description="ReadaBook PWA served by Nginx" \
|
||||
org.opencontainers.image.source="https://gitea.anthonybouteiller.ovh/blomios/ReadaBook" \
|
||||
org.opencontainers.image.created="${OCI_IMAGE_CREATED}" \
|
||||
org.opencontainers.image.revision="${OCI_IMAGE_REVISION}" \
|
||||
org.opencontainers.image.version="${OCI_IMAGE_VERSION}"
|
||||
COPY apps/web/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/apps/web/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user