Skip to content

Instantly share code, notes, and snippets.

View DiegoDom's full-sized avatar
🦏
Focusing

Diego Alberto Domínguez DiegoDom

🦏
Focusing
View GitHub Profile
@Klerith
Klerith / instalaciones-next.md
Last active October 17, 2024 15:59
Instalaciones recomendadas para el curso de Next.js 13 >
@Klerith
Klerith / password-property-dto.ts
Created July 16, 2022 16:32
Password validation - DTO
@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;
@Klerith
Klerith / recomendada.Dockerfile
Last active November 26, 2023 20:03
NextJS - Dockerfile - Configuración simple y recomendada
# Fuente: https://github.com/vercel/next.js/blob/canary/examples/with-docker/README.md
# Install dependencies only when needed
FROM node:16-alpine 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