Comments (1)
Solved:
Mistake on my part, due to SvelteKit being a framework that compiles down to Javascript it is a dev dependency and due to the nature of my project I haven't ran into any dependency issues, due to the fact there where non, until I installed the Directus SDK.
Solution:
Copy the node_modules folder into the production build (duh...)
FROM node:20.9-alpine3.17 AS base
FROM base AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci && npm cache clean --force
FROM base AS builder
ARG PUBLIC_SHOPIFY_ACCESS_TOKEN=${PUBLIC_SHOPIFY_ACCESS_TOKEN}
ARG PUBLIC_SHOPIFY_API_ENDPOINT=${PUBLIC_SHOPIFY_API_ENDPOINT}
ARG PUBLIC_DIRECTUS_URL=${PUBLIC_DIRECTUS_URL}
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
RUN npm prune --omit-dev <----- OPTIMIZATION
FROM base as runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/build ./build
COPY --from=deps /app/package.json ./
COPY --from=builder /app/node_modules ./node_modules <----- ADDED THIS LINE
USER node
EXPOSE 3000
CMD [ "node", "build" ]
from directus.
Related Issues (20)
- Updating Directus Version from 10.8 to 10.12 HOT 7
- Incorrect types infered for M2O/M2M relations in SDK for query filter
- Records with custom permission are not available in the API. HOT 2
- Numeric Fields for Labels Display - Configuration type problem
- Flows logs are not shown in flow sidebar HOT 1
- Flows - unable to use id/key in payload from Read Data operation HOT 1
- SDK type error on readItems when using 'datetime' literal HOT 3
- Make flow names & descriptions translatable
- The s3 file health-xxxxx generated by the health check was not cleared successfully HOT 3
- `items.read` doesn't seem to trigger every time HOT 1
- Some operations are missing when querying via `/operations` endpoint HOT 1
- Multiple API Calls Triggered on Typing in Any Field HOT 1
- Schema import issue: `A primary key should not be a foreign key`
- Relational groupBy not implemented HOT 1
- Ability to expand/collapse all collections in data model HOT 1
- Api: Content version does not return relational data HOT 10
- Query limit with a relational sort will not return the correct amount
- Subtitle Link Undefined HOT 5
- auth/refresh 400 error HOT 7
- _fields within deep Query not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.