Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/PostmanStep 2
| @IsString() | |
| @MinLength(6) | |
| @MaxLength(50) | |
| @Matches( | |
| /(?:(?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, { | |
| message: 'The password must have a Uppercase, lowercase letter and a number' | |
| }) | |
| password: string; |
| # Install dependencies only when needed | |
| FROM node:18-alpine3.15 AS deps | |
| # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
| RUN apk add --no-cache libc6-compat | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile | |
| # Build the app with cache dependencies | |
| FROM node:18-alpine3.15 AS builder |