migration to yarn
This commit is contained in:
parent
5beff2fa0c
commit
cc1b8d926d
53
Dockerfile
53
Dockerfile
|
|
@ -1,34 +1,65 @@
|
||||||
|
# FROM node:23.5.0-alpine
|
||||||
|
|
||||||
|
# ENV PORT 4000
|
||||||
|
|
||||||
|
# # pnpm install globally
|
||||||
|
# RUN npm install -g pnpm
|
||||||
|
|
||||||
|
# # Create app directory
|
||||||
|
# RUN mkdir -p /usr/src/app
|
||||||
|
# WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# # Installing dependencies
|
||||||
|
# COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
|
# # Copy ckeditor5 to workdir
|
||||||
|
# COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
|
# # Install dependencies
|
||||||
|
# RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
# # RUN npm install --force
|
||||||
|
# # RUN npm install -g npm@latest
|
||||||
|
# # RUN npm install
|
||||||
|
|
||||||
|
# # Copying source files
|
||||||
|
# COPY . .
|
||||||
|
|
||||||
|
# # Building app
|
||||||
|
# RUN pnpm run build
|
||||||
|
|
||||||
|
# EXPOSE 4000
|
||||||
|
|
||||||
|
# # Running the app
|
||||||
|
# CMD ["pnpm", "run", "start"]
|
||||||
|
|
||||||
FROM node:23.5.0-alpine
|
FROM node:23.5.0-alpine
|
||||||
|
|
||||||
ENV PORT 4000
|
ENV PORT 4000
|
||||||
|
|
||||||
# pnpm install globally
|
# Install Yarn globally
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g yarn
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
RUN mkdir -p /usr/src/app
|
RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Installing dependencies
|
# Copy package.json and yarn.lock
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
# Copy ckeditor5 to workdir
|
# Copy ckeditor5 to workdir
|
||||||
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
# RUN npm install --force
|
|
||||||
# RUN npm install -g npm@latest
|
|
||||||
# RUN npm install
|
|
||||||
|
|
||||||
# Copying source files
|
# Copying source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Building app
|
# Building app
|
||||||
RUN pnpm run build
|
RUN yarn build
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Running the app
|
# Running the app
|
||||||
CMD ["pnpm", "run", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
|
@ -25,7 +25,7 @@ export default function CategorySatker() {
|
||||||
const list = [
|
const list = [
|
||||||
{
|
{
|
||||||
id: 6,
|
id: 6,
|
||||||
img: "/assets/satker2/yanma.png",
|
img: "/assets/satker2/yanma-icon.png",
|
||||||
title: "Yanma",
|
title: "Yanma",
|
||||||
path: "/news/yanma",
|
path: "/news/yanma",
|
||||||
},
|
},
|
||||||
|
|
@ -340,13 +340,7 @@ export default function CategorySatker() {
|
||||||
key={index}
|
key={index}
|
||||||
className="w-[157px] h-[140px] flex flex-col items-center justify-evenly "
|
className="w-[157px] h-[140px] flex flex-col items-center justify-evenly "
|
||||||
>
|
>
|
||||||
<Image
|
<img src={item.img} className="h-[60px]" />
|
||||||
radius="lg"
|
|
||||||
src={item.img}
|
|
||||||
className="w-10 h-10"
|
|
||||||
height={480}
|
|
||||||
width={480}
|
|
||||||
/>
|
|
||||||
<p className="text-xs font-bold text-white">{item.title}</p>
|
<p className="text-xs font-bold text-white">{item.title}</p>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -11,7 +11,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ckeditor/ckeditor5-react": "^6.2.0",
|
"@ckeditor/ckeditor5-react": "^6.2.0",
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
"@nextui-org/breadcrumbs": "^2.0.4",
|
"@nextui-org/breadcrumbs": "^2.2.6",
|
||||||
"@nextui-org/button": "2.0.26",
|
"@nextui-org/button": "2.0.26",
|
||||||
"@nextui-org/code": "2.0.24",
|
"@nextui-org/code": "2.0.24",
|
||||||
"@nextui-org/input": "2.1.16",
|
"@nextui-org/input": "2.1.16",
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"@nextui-org/react": "^2.2.9",
|
"@nextui-org/react": "^2.2.9",
|
||||||
"@nextui-org/snippet": "2.0.30",
|
"@nextui-org/snippet": "2.0.30",
|
||||||
"@nextui-org/switch": "2.0.25",
|
"@nextui-org/switch": "2.0.25",
|
||||||
"@nextui-org/system": "2.0.15",
|
"@nextui-org/system": "^2.4.6",
|
||||||
"@nextui-org/theme": "2.1.17",
|
"@nextui-org/theme": "2.1.17",
|
||||||
"@react-aria/ssr": "^3.8.0",
|
"@react-aria/ssr": "^3.8.0",
|
||||||
"@react-aria/visually-hidden": "^3.8.6",
|
"@react-aria/visually-hidden": "^3.8.6",
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
|
|
@ -21,7 +21,8 @@
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
}
|
},
|
||||||
|
"typeRoots": ["./types", "./node_modules/@types"]
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue