Files
Homarr/Dockerfile

33 lines
739 B
Docker
Raw Normal View History

FROM node:20.5-slim
2022-05-12 19:43:04 -04:00
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED 1
2022-05-12 19:43:04 -04:00
ENV NODE_ENV production
2023-06-07 19:44:43 +02:00
ENV NODE_OPTIONS '--no-experimental-fetch'
COPY next.config.js ./
COPY public ./public
COPY package.json ./package.json
COPY yarn.lock ./yarn.lock
2023-06-07 19:44:43 +02:00
# 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
COPY prisma/schema.prisma prisma/schema.prisma
2023-08-05 00:45:58 +02:00
COPY ./scripts/run.sh ./scripts/run.sh
2023-08-29 22:21:04 +02:00
# RUN npm config set unsafe-perm true
# ARG NPM_CONFIG_LOGLEVEL=verbose
2023-08-31 17:43:17 +02:00
RUN yarn global add prisma
RUN which prisma
2022-05-12 19:43:04 -04:00
EXPOSE 7575
2022-05-12 19:43:04 -04:00
ENV PORT 7575
2023-08-05 00:45:58 +02:00
ENV NEXTAUTH_SECRET NOT_IN_USE_BECAUSE_JWTS_ARE_UNUSED
2023-08-05 00:45:58 +02:00
CMD ["sh", "./scripts/run.sh"]