mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Dockerfile prisma fix
This commit is contained in:
parent
2188f76318
commit
e5bae66363
11
Dockerfile
11
Dockerfile
@ -25,22 +25,23 @@ RUN npm run build
|
|||||||
FROM --platform=$TARGETPLATFORM node:20-alpine AS production
|
FROM --platform=$TARGETPLATFORM node:20-alpine AS production
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json* ./
|
|
||||||
|
|
||||||
# nur Production-Deps
|
ENV NODE_ENV production
|
||||||
RUN npm ci --only=production
|
ENV PRISMA_CLI_BINARY_TARGETS="linux-musl-arm64-openssl-3.0.x"
|
||||||
|
|
||||||
# dann restliche Dateien kopieren
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
COPY --from=builder /app/package.json ./package.json
|
||||||
COPY --from=builder /app/next.config.js* ./
|
COPY --from=builder /app/next.config.js* ./
|
||||||
|
|
||||||
|
RUN npm prune --production
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["sh", "-c", "npx prisma migrate deploy && npm start"]
|
CMD ["sh", "-c", "npx prisma migrate deploy && npm start"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# - - BUILD COMMAND - -
|
# - - BUILD COMMAND - -
|
||||||
# docker buildx build \
|
# docker buildx build \
|
||||||
# --platform linux/amd64,linux/arm64,linux/arm/v7 \
|
# --platform linux/amd64,linux/arm64,linux/arm/v7 \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user