mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-18 07:56:57 +00:00
Dockerfile Web Fix
This commit is contained in:
parent
bc060664dd
commit
912fd68a0f
11
Dockerfile
11
Dockerfile
@ -25,23 +25,22 @@ 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* ./
|
||||||
|
|
||||||
ENV NODE_ENV production
|
# nur Production-Deps
|
||||||
ENV PRISMA_CLI_BINARY_TARGETS="linux-musl-arm64-openssl-3.0.x"
|
RUN npm ci --only=production
|
||||||
|
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
# dann restliche Dateien kopieren
|
||||||
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