matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit 9724dd31af1cace7783af2e106ff08efb4c3c0ac
parent 815a9751ffe91d97a117f69500c3e260467e9b12
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 30 Dec 2021 21:23:22 +0100

Further Dockerfile fixes

Diffstat:
MDockerfile | 13+++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -25,13 +25,10 @@ RUN adduser -S nextjs -u 1001 # 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/public ./public +COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next +COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./package.json -# Automatically leverage output traces to reduce image size -# https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ -COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static - USER nextjs EXPOSE 3000 @@ -41,6 +38,6 @@ ENV PORT 3000 # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry # Uncomment the following line in case you want to disable telemetry. -# ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED 1 -CMD ["node", "server.js"] -\ No newline at end of file +CMD ["node_modules/.bin/next", "server.js"] +\ No newline at end of file