mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-24 16:29:15 +01:00
fix: docker build and prisma orm database push
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm i -g prisma
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NODE_ENV production
|
||||
ENV NODE_OPTIONS '--no-experimental-fetch'
|
||||
@@ -10,6 +8,7 @@ ENV NODE_OPTIONS '--no-experimental-fetch'
|
||||
COPY next.config.js ./
|
||||
COPY public ./public
|
||||
COPY package.json ./package.json
|
||||
COPY yarn.lock ./yarn.lock
|
||||
|
||||
# Automatically leverage output traces to reduce image size
|
||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||
@@ -20,6 +19,9 @@ COPY prisma/schema.prisma prisma/schema.prisma
|
||||
|
||||
COPY ./scripts/run.sh ./scripts/run.sh
|
||||
|
||||
RUN yarn global add prisma
|
||||
RUN which prisma
|
||||
|
||||
EXPOSE 7575
|
||||
|
||||
ENV PORT 7575
|
||||
|
||||
1
next-env.d.ts
vendored
1
next-env.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
/// <reference types="next/navigation-types/compat/navigation" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"test:run": "vitest run",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"docker:build": "turbo build && docker build . -t homarr:dev",
|
||||
"docker:start": "docker run --env-file ./.env -p 7575:7575 homarr:dev ",
|
||||
"docker:start": "docker run -p 7575:7575 homarr:dev ",
|
||||
"postinstall": "prisma generate"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user