Skip to content

Commit f4e3e16

Browse files
committed
Update Dockerfile to restore commented-out lines and improve architecture handling; add validation decorators to ConfigRulesObjectIdentitiesDTO
1 parent ca3040c commit f4e3e16

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ADD ecosystem.config.cjs .
2424
ADD package.json .
2525
ADD *.lock .
2626
ADD ./apps/api/package.json ./apps/api/package.json
27-
# ADD ./apps/web/package.json ./apps/web/package.json
27+
ADD ./apps/web/package.json ./apps/web/package.json
2828

2929
RUN apk add --no-cache \
3030
openssl \
@@ -35,11 +35,11 @@ RUN apk add --no-cache \
3535

3636
RUN ARCH=$(uname -m) && \
3737
if [ "$ARCH" = "x86_64" ]; then \
38-
npm i -g @css-inline/css-inline-linux-x64-musl; \
38+
npm i -g @css-inline/css-inline-linux-x64-musl; \
3939
elif [ "$ARCH" = "aarch64" ]; then \
40-
npm i -g @css-inline/css-inline-linux-arm64-musl; \
40+
npm i -g @css-inline/css-inline-linux-arm64-musl; \
4141
else \
42-
echo "Unsupported architecture: $ARCH" && exit 1; \
42+
echo "Unsupported architecture: $ARCH" && exit 1; \
4343
fi
4444

4545
RUN yarn install \
@@ -52,12 +52,11 @@ RUN yarn global add pm2
5252
# RUN yarn cache clean --all
5353

5454
COPY --from=builder /data/apps/api/dist ./apps/api/dist
55-
# COPY --from=builder /data/apps/web/.output ./apps/web/.output
56-
# COPY --from=builder /data/apps/web/nuxt.config.ts ./apps/web/nuxt.config.ts
57-
# COPY --from=builder /data/apps/web/src ./apps/web/src
58-
# COPY --from=builder /data/apps/web/start.mjs ./apps/web/start.mjs
55+
COPY --from=builder /data/apps/web/.output ./apps/web/.output
56+
COPY --from=builder /data/apps/web/nuxt.config.ts ./apps/web/nuxt.config.ts
57+
COPY --from=builder /data/apps/web/src ./apps/web/src
58+
COPY --from=builder /data/apps/web/start.mjs ./apps/web/start.mjs
5959

6060
EXPOSE 4000 3000
6161

62-
# CMD ["yarn", "workspace", "@libertech-fr/i2fc_espacepublic-api", "start:prod"]
6362
CMD ["pm2-runtime", "ecosystem.config.cjs"]

apps/api/src/management/lifecycle/_dto/config-rules.dto.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ export class ConfigRulesObjectIdentitiesDTO {
130130
example: IdentityLifecycleDefault.OFFICIAL,
131131
required: true,
132132
})
133+
@IsArray()
134+
@IsNotEmpty()
135+
@IsString({ each: true })
133136
public sources: IdentityLifecycleDefault[];
134137

135138
@IsOptional()

0 commit comments

Comments
 (0)