modify docker file
This commit is contained in:
parent
cf68ff33f3
commit
8b884b808e
28
Dockerfile
28
Dockerfile
@ -1,31 +1,15 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM docker.ibagher.ir/node:22-bullseye-slim AS builder
|
||||
FROM docker.ibagher.ir/node:20-bullseye-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Increase memory for large builds
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
COPY yarn*.lock package*.json ./
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn \
|
||||
yarn install
|
||||
RUN yarn install && yarn cache clean
|
||||
|
||||
COPY . .
|
||||
RUN --mount=type=cache,target=/app/.next/cache \
|
||||
yarn build
|
||||
COPY . /app
|
||||
|
||||
FROM docker.ibagher.ir/node:22-bullseye-slim AS runner
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Copy standalone output
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/public ./public
|
||||
RUN yarn build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
CMD ["yarn", "start"]
|
||||
@ -56,7 +56,7 @@ export default function LlmPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel w={"120px"}>حداکثر تعداد توکن</FormLabel>
|
||||
<FormLabel w={"120px"}>حداکثر تعداد توکن:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("token")} />
|
||||
</FormControl>
|
||||
@ -71,7 +71,7 @@ export default function LlmPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>تعداد</FormLabel>
|
||||
<FormLabel>تعداد:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("number")} />
|
||||
</FormControl>
|
||||
@ -87,7 +87,7 @@ export default function LlmPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>پرامپت</FormLabel>
|
||||
<FormLabel>پرامپت:</FormLabel>
|
||||
</HStack>
|
||||
<Textarea bgColor={"white"} {...register("prompts")} />
|
||||
</FormControl>
|
||||
@ -95,29 +95,7 @@ export default function LlmPanel() {
|
||||
اجرا
|
||||
</Button>
|
||||
<Divider my={"20px"} />
|
||||
<FormControl
|
||||
bgColor={"purple.50"}
|
||||
border={"1px"}
|
||||
borderColor={"gray.200"}
|
||||
p={"10px"}
|
||||
borderRadius={"10px"}
|
||||
>
|
||||
<HStack w={"100%"} justifyContent={"space-between"}>
|
||||
<FormLabel fontSize={"20px"}>پاسخ</FormLabel>
|
||||
<Icon
|
||||
as={MdOutlineQuestionAnswer}
|
||||
bgColor={"gray.200"}
|
||||
borderRadius={"50%"}
|
||||
p={"5px"}
|
||||
fontSize={"30px"}
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
</HStack>
|
||||
<Textarea bgColor={"white"} />
|
||||
</FormControl>
|
||||
<Divider my={"20px"} />
|
||||
<TableContainer w={"100%"} mt={"50px"}>
|
||||
<TableContainer w={"100%"} mt={"10px"}>
|
||||
<Table>
|
||||
<Thead>
|
||||
<Tr>
|
||||
|
||||
@ -62,7 +62,7 @@ export default function TextImagePanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>طول</FormLabel>
|
||||
<FormLabel>طول:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("height")} />
|
||||
</FormControl>
|
||||
@ -77,12 +77,12 @@ export default function TextImagePanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>عرض</FormLabel>
|
||||
<FormLabel>عرض:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("width")} />
|
||||
</FormControl>
|
||||
<FormControl as={VStack} alignItems={"start"}>
|
||||
<FormLabel>seed</FormLabel>
|
||||
<FormLabel>seed:</FormLabel>
|
||||
<Input bgColor={"white"} {...register("seed")} />
|
||||
</FormControl>
|
||||
</HStack>
|
||||
@ -98,7 +98,7 @@ export default function TextImagePanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>تعداد مراحل استنتاج</FormLabel>
|
||||
<FormLabel>تعداد مراحل استنتاج:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("inference")} />
|
||||
</FormControl>
|
||||
@ -113,7 +113,7 @@ export default function TextImagePanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>تعداد</FormLabel>
|
||||
<FormLabel>تعداد:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("number")} />
|
||||
</FormControl>
|
||||
@ -129,7 +129,7 @@ export default function TextImagePanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>پرامپت</FormLabel>
|
||||
<FormLabel>پرامپت:</FormLabel>
|
||||
</HStack>
|
||||
<Textarea bgColor={"white"} {...register("prompt")} />
|
||||
</FormControl>
|
||||
@ -137,28 +137,7 @@ export default function TextImagePanel() {
|
||||
اجرا
|
||||
</Button>
|
||||
<Divider my={"20px"} />
|
||||
<FormControl
|
||||
as={HStack}
|
||||
w={"100%"}
|
||||
justifyContent={"space-between"}
|
||||
bgColor={"purple.50"}
|
||||
border={"1px"}
|
||||
borderColor={"gray.200"}
|
||||
p={"10px"}
|
||||
borderRadius={"10px"}
|
||||
>
|
||||
<FormLabel fontSize={"20px"}>پاسخ</FormLabel>
|
||||
<Box
|
||||
w={"200px"}
|
||||
h={"200px"}
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
borderRadius={"10px"}
|
||||
bgColor={"white"}
|
||||
></Box>
|
||||
</FormControl>
|
||||
<Divider my={"20px"} />
|
||||
<TableContainer w={"100%"} mt={"50px"}>
|
||||
<TableContainer w={"100%"} mt={"10px"}>
|
||||
<Table>
|
||||
<Thead>
|
||||
<Tr>
|
||||
|
||||
@ -57,16 +57,15 @@ export default function TextVideoPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>تعداد فریم ها</FormLabel>
|
||||
<FormLabel>تعداد فریم ها:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("frames")} />
|
||||
</FormControl>
|
||||
<FormControl>
|
||||
<FormLabel>seed</FormLabel>
|
||||
<FormControl as={VStack} alignItems={"start"}>
|
||||
<FormLabel>seed:</FormLabel>
|
||||
<Input bgColor={"white"} />
|
||||
</FormControl>
|
||||
</HStack>
|
||||
<HStack>
|
||||
|
||||
<FormControl as={VStack} alignItems={"start"}>
|
||||
<HStack alignItems={"start"}>
|
||||
<Icon
|
||||
@ -78,7 +77,7 @@ export default function TextVideoPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>مقیاس راهنمایی</FormLabel>
|
||||
<FormLabel>مقیاس راهنمایی:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("scale")} />
|
||||
</FormControl>
|
||||
@ -93,7 +92,7 @@ export default function TextVideoPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>تعداد</FormLabel>
|
||||
<FormLabel>تعداد:</FormLabel>
|
||||
</HStack>
|
||||
<Input bgColor={"white"} {...register("number")} />
|
||||
</FormControl>
|
||||
@ -109,7 +108,7 @@ export default function TextVideoPanel() {
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
/>
|
||||
<FormLabel>پرامپت</FormLabel>
|
||||
<FormLabel>پرامپت:</FormLabel>
|
||||
</HStack>
|
||||
<Textarea bgColor={"white"} {...register("prompt")} />
|
||||
</FormControl>
|
||||
@ -117,28 +116,7 @@ export default function TextVideoPanel() {
|
||||
اجرا
|
||||
</Button>
|
||||
<Divider my={"20px"} />
|
||||
<FormControl
|
||||
as={HStack}
|
||||
w={"100%"}
|
||||
justifyContent={"space-between"}
|
||||
bgColor={"purple.50"}
|
||||
border={"1px"}
|
||||
borderColor={"gray.200"}
|
||||
p={"10px"}
|
||||
borderRadius={"10px"}
|
||||
>
|
||||
<FormLabel fontSize={"20px"}>پاسخ</FormLabel>
|
||||
<Box
|
||||
w={"200px"}
|
||||
h={"200px"}
|
||||
border={"1px"}
|
||||
borderColor={"gray.300"}
|
||||
borderRadius={"10px"}
|
||||
bgColor={"white"}
|
||||
></Box>
|
||||
</FormControl>
|
||||
<Divider my={"20px"} />
|
||||
<TableContainer w={"100%"} mt={"50px"}>
|
||||
<TableContainer w={"100%"} mt={"10px"}>
|
||||
<Table>
|
||||
<Thead>
|
||||
<Tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user