Skip to content

Commit

Permalink
fix pnpm issue in v11.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davepoon committed Oct 9, 2024
1 parent 8d56fa9 commit e358892
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ FROM directus/directus:11.1

USER root
RUN corepack enable
USER node

# Installing contributed/custom extensions through npm on Railway
RUN pnpm install directus-extension-computed-interface && pnpm install directus-extension-upsert && pnpm install directus-extension-wpslug-interface && pnpm install pg

USER node

# Migrations and Directus schema update
RUN npx directus bootstrap
# Copying the extensions, templates, migrations, and snapshots to the Directus container
COPY ./extensions /directus/extensions
COPY ./templates /directus/templates
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ FROM directus/directus:11.1

USER root
RUN corepack enable
USER node

# Installing contributed/custom extensions through npm on Railway
RUN pnpm install directus-extension-computed-interface && pnpm install directus-extension-upsert && pnpm install directus-extension-wpslug-interface && pnpm install pg

USER node

# Migrations and Directus schema update
RUN npx directus bootstrap;
RUN npx directus bootstrap

# Restore schema snapshots
# RUN npx directus schema apply --yes /directus/files/snapshots/snapshot.yaml

0 comments on commit e358892

Please sign in to comment.