Files
Homarr/Dockerfile
Thomas Camlong 1d734633f0 🚑 Merge pull request #301 from ajnart/dev
🚑 Hotfix Docker image with new NextJS version
2022-07-23 00:25:45 +02:00

24 lines
426 B
Docker

FROM node:16-alpine
WORKDIR /app
RUN apk add tzdata
ENV NEXT_TELEMETRY_DISABLED 1
ENV NODE_ENV production
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"]