utopia-ui/backend/Dockerfile
Ulf Gebhardt 9944964e2e
docker-compose backend + dockerfile including sync extension
Includes a directus backend in the docker-compose file and the extension
`directus-sync` to allow the persisting of the directus configuration.
2025-03-10 16:37:09 +01:00

12 lines
479 B
Docker

FROM node:20-alpine as third-party-ext
RUN apk add python3 g++ make
WORKDIR /extensions
ADD extensions .
RUN npm install
# Move all extensions the starts with directus-extension-, using find, to the /extensions/directus folder
RUN mkdir -p ./directus
RUN cd node_modules && find . -maxdepth 1 -type d -name "directus-extension-*" -exec mv {} ../directus \;
FROM directus/directus:11.4.1
# Copy third party extensions
COPY --from=third-party-ext /extensions/directus ./extensions