mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Update docker build.
This commit is contained in:
parent
a37dd6180b
commit
6541ba1ab4
5 changed files with 9 additions and 28 deletions
|
|
@ -37,13 +37,14 @@ RUN addgroup --system --gid 1001 nodejs
|
|||
RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
RUN yarn global add prisma
|
||||
RUN yarn add npm-run-all dotenv
|
||||
|
||||
# You only need to copy next.config.js if you are NOT using the default configuration
|
||||
COPY --from=builder /app/next.config.js ./
|
||||
COPY --from=builder /app/next.config.js .
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY --from=builder /app/prisma/schema.prisma ./prisma/schema.prisma
|
||||
COPY --from=builder /app/prisma/migrations ./prisma/migrations
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/scripts ./scripts
|
||||
|
||||
# Automatically leverage output traces to reduce image size
|
||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue