diff --git a/Dockerfile.prod b/Dockerfile.prod index b920feef..66429817 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -4,12 +4,11 @@ ARG DATABASE_URL WORKDIR /usr/src/app COPY . . -RUN yarn install -RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../.. -ENV DATABASE_URL=$DATABASE_URL -RUN yarn build -EXPOSE 3000 +RUN npm install +RUN DATABASE_URL=$DATABASE_URL npx prisma generate +RUN DATABASE_URL=$DATABASE_URL npm run build -CMD ["npm", "run", "start"] +EXPOSE 3000 +CMD ["npm", "run", "start"] \ No newline at end of file