This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "NodeNext", | |
"moduleResolution": "NodeNext", | |
"target": "ES2020", | |
"sourceMap": true, | |
"outDir": "dist" | |
}, | |
"include": [ | |
"*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
postgres: | |
image: postgres:16.3-alpine3.20 | |
container_name: appname | |
ports: | |
- '5432:5432' | |
environment: | |
POSTGRES_DB: appname | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:20.14.0-alpine3.20 | |
WORKDIR /app | |
COPY . . | |
RUN npm install -g pnpm | |
RUN pnpm install | |
RUN pnpm generate | |
RUN pnpm migrate | |
RUN pnpm build | |
EXPOSE 3000 | |
USER node |