Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaz9 committed Sep 5, 2024
1 parent 9e42f30 commit 3b4b98b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:alpine AS build
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
FROM node:20-alpine AS build
RUN apk add --no-cache --virtual build-dependencies build-base gcc python3
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN corepack enable
RUN pnpm install --force --frozen-lockfile
RUN pnpm run build:cms

FROM directus/directus
USER node
ENV ADMIN_EMAIL="admin@example.com"
ENV ADMIN_PASSWORD="d1r3ctu5"
COPY --from=build ./usr/src/app/apps/cms/snapshot.yaml ./snapshot.yaml
Expand Down
48 changes: 24 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b4b98b

Please sign in to comment.