updated .\dockerfile and .\prisma\ [deploy]
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 1m42s
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 1m42s
This commit is contained in:
@@ -6,17 +6,18 @@ WORKDIR /usr/src/app
|
|||||||
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV NODE_ENV=development
|
ENV NODE_ENV=development
|
||||||
|
ENV NPM_CONFIG_PRODUCTION=false
|
||||||
ENV PATH="/usr/src/app/node_modules/.bin:${PATH}"
|
ENV PATH="/usr/src/app/node_modules/.bin:${PATH}"
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies (inkl. dev)
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci
|
RUN npm ci --include=dev
|
||||||
|
|
||||||
# Copy source
|
# Copy source
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Generate Prisma client (explicit schema path, use local binary)
|
# Generate Prisma client (explicit schema path, use local binary)
|
||||||
RUN ./node_modules/.bin/prisma generate --schema=prisma/schema.prisma
|
RUN ls node_modules/.bin && ./node_modules/.bin/prisma generate --schema=prisma/schema.prisma
|
||||||
|
|
||||||
# Optional: show versions in build log
|
# Optional: show versions in build log
|
||||||
RUN node -v && npm -v && npx prisma -v
|
RUN node -v && npm -v && npx prisma -v
|
||||||
|
|||||||
Reference in New Issue
Block a user