Added arguments to the Dockerfile
This commit is contained in:
@@ -49,6 +49,9 @@ COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static
|
|||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|
||||||
|
ARG STRAPI_URL=http://localhost:1337
|
||||||
|
ARG STRAPI_TOKEN=TOKEN
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENV PORT 3000
|
ENV PORT 3000
|
||||||
|
|||||||
@@ -35,23 +35,23 @@ interface SectionStruct {
|
|||||||
|
|
||||||
export default function Services({language, data}: Props) {
|
export default function Services({language, data}: Props) {
|
||||||
const struct: SectionStruct[] = [
|
const struct: SectionStruct[] = [
|
||||||
...data.ModuleEvaluation.map((module, index) => ({
|
...(data.ModuleEvaluation?.map((module, index) => ({
|
||||||
id: index.toString(),
|
id: index.toString(),
|
||||||
description: module.Text,
|
description: module.Text,
|
||||||
title: module.Title,
|
title: module.Title,
|
||||||
bullets: [
|
bullets: [
|
||||||
{
|
{
|
||||||
title: module.Evaluation,
|
title: module.Evaluation,
|
||||||
values: module.EvaluationValues.split("\n"),
|
values: module.EvaluationValues?.split("\n"),
|
||||||
icon: BsIcon[module.EvaluationIcon as keyof typeof BsIcon],
|
icon: BsIcon[module.EvaluationIcon as keyof typeof BsIcon],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: module.Acquire,
|
title: module.Acquire,
|
||||||
values: module.AcquireValues.split("\n"),
|
values: module.AcquireValues?.split("\n"),
|
||||||
icon: BsIcon[module.AcquireIcon as keyof typeof BsIcon],
|
icon: BsIcon[module.AcquireIcon as keyof typeof BsIcon],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})),
|
})) || []),
|
||||||
{
|
{
|
||||||
id: "progress_tracking",
|
id: "progress_tracking",
|
||||||
title: data.ProgressTracking.Title,
|
title: data.ProgressTracking.Title,
|
||||||
@@ -59,7 +59,7 @@ export default function Services({language, data}: Props) {
|
|||||||
bullets: [
|
bullets: [
|
||||||
{
|
{
|
||||||
title: data.ProgressTracking.Advantages,
|
title: data.ProgressTracking.Advantages,
|
||||||
values: data.ProgressTracking.AdvantageValues.split("\n"),
|
values: data.ProgressTracking.AdvantageValues?.split("\n"),
|
||||||
icon: BsFileBarGraph,
|
icon: BsFileBarGraph,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -74,7 +74,7 @@ export default function Services({language, data}: Props) {
|
|||||||
bullets: [
|
bullets: [
|
||||||
{
|
{
|
||||||
title: data.UnifiedEnglishLevelTest.Advantages,
|
title: data.UnifiedEnglishLevelTest.Advantages,
|
||||||
values: data.UnifiedEnglishLevelTest.AdvantageValues.split("\n"),
|
values: data.UnifiedEnglishLevelTest.AdvantageValues?.split("\n"),
|
||||||
icon: BsBank,
|
icon: BsBank,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -108,7 +108,7 @@ export default function Services({language, data}: Props) {
|
|||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
<span className="text-lg font-bold text-mti-rose-light">{bullet.title}</span>
|
<span className="text-lg font-bold text-mti-rose-light">{bullet.title}</span>
|
||||||
<ul className="list-disc gap-2 flex flex-col">
|
<ul className="list-disc gap-2 flex flex-col">
|
||||||
{bullet.values.map((value) => (
|
{bullet.values?.map((value) => (
|
||||||
<li key={value}>{value}</li>
|
<li key={value}>{value}</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user