Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbuechele committed Sep 20, 2024
1 parent 26cae99 commit 366e132
Show file tree
Hide file tree
Showing 7 changed files with 5,096 additions and 15,069 deletions.
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Dockerfile
node_modules
!node_modules/directus-extension-directus-operation-slugify
.github
.git
.flaskenv*
!.env.project
!.env.vault
.env*
!.env.vault
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
npx dotenv-vault pull
npx dotenv-vault pull production
npx ts-node scripts/merge-envs.ts
npm run build
- uses: 'google-github-actions/auth@v1'
with:
Expand Down
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM node:20-slim
FROM directus/directus:10.10.5

COPY .env .env
COPY packages extensions
COPY node_modules/directus-extension-directus-operation-slugify extensions/directus-extension-directus-operation-slugify

WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install --omit=dev
COPY . .
RUN npm run build
CMD ["npm", "start"]
Loading

0 comments on commit 366e132

Please sign in to comment.