mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Manuel <manuel.ruwe@bluewin.ch>
22 lines
447 B
Docker
22 lines
447 B
Docker
FROM node:20-alpine
|
|
WORKDIR /app
|
|
|
|
ENV NEXT_TELEMETRY_DISABLED 1
|
|
ENV NODE_ENV production
|
|
ENV NODE_OPTIONS '--no-experimental-fetch'
|
|
|
|
COPY next.config.js ./
|
|
COPY public ./public
|
|
COPY package.json ./package.json
|
|
|
|
# Automatically leverage output traces to reduce image size
|
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
|
COPY .next/standalone ./
|
|
COPY .next/static ./.next/static
|
|
|
|
EXPOSE 7575
|
|
|
|
ENV PORT 7575
|
|
|
|
CMD ["node", "server.js"]
|