Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NEXT_PUBLIC_API_BASE_URL=http://localhost:3000/api/
OPENAPI_URL=http://localhost:3000/api/json
PORT=3000
22 changes: 10 additions & 12 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --offline --froze
FROM base AS builder
ARG NEXT_PUBLIC_API_BASE_URL
ARG OPENAPI_URL
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL \
OPENAPI_URL=$OPENAPI_URL

ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL \
OPENAPI_URL=$OPENAPI_URL \
NEXT_TELEMETRY_DISABLED=1

COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand All @@ -29,23 +29,21 @@ RUN --mount=type=cache,target=/app/.next/cache pnpm run build
FROM node:20-alpine AS runner
WORKDIR /app

ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 frontend
ENV PORT=${PORT:-3001}
ENV HOSTNAME="0.0.0.0"

RUN mkdir .next
RUN chown frontend:nodejs .next
RUN addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 frontend

COPY --from=builder /app/public ./public
COPY --from=builder --chown=frontend:nodejs /app/.next/standalone ./
COPY --from=builder --chown=frontend:nodejs /app/.next/static ./.next/static

USER frontend

EXPOSE 3001
ENV PORT 3001
ENV HOSTNAME "0.0.0.0"
EXPOSE $PORT

CMD ["node", "server.js"]
9 changes: 0 additions & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ const eslintConfig = defineConfig([
],
},
},
// исключения для автогенерируемых API-файлов
{
files: ['src/shared/api/endpoints/**/*.{ts,js}', 'src/shared/api/schemas/**/*.{ts,js}'],
rules: {
'check-file/filename-naming-convention': 'off',
'check-file/folder-naming-convention': 'off',
'no-useless-escape': 'off',
},
},
globalIgnores(['.next/**', 'out/**', 'build/**', 'next-env.d.ts']),
]);

Expand Down
38 changes: 0 additions & 38 deletions orval.config.ts

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
"build-storybook": "storybook build",
"test": "vitest",
"test:ci": "vitest run",
"openapi:pull": "node src/shared/api/openapi/pull-openapi.mjs",
"openapi:orval": "orval",
"openapi:sync": "pnpm openapi:pull && pnpm openapi:orval",
"prepare": "husky"
},
"dependencies": {
Expand Down Expand Up @@ -69,7 +66,6 @@
"husky": "^9.1.7",
"jsdom": "^29.0.1",
"lint-staged": "^16.3.1",
"orval": "^8.7.0",
"postcss": "8.5.10",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.7.2",
Expand Down
Loading
Loading