Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Kysely upgrade #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
25 changes: 17 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
FROM node:16-alpine as development
FROM node:20-alpine as development

# Create app directory
WORKDIR /usr/src/app

RUN corepack enable pnpm
RUN corepack use pnpm@8


# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
COPY package.json ./
COPY pnpm-lock.yaml ./

RUN npm install

RUN pnpm i --frozen-lockfile

# Bundle app source
COPY . .

RUN npm run build
RUN pnpm build

FROM node:16-alpine as production
FROM node:20-alpine as production
WORKDIR /usr/src/app

RUN corepack enable pnpm
RUN corepack use pnpm@8

COPY package*.json ./
RUN npm install --only=production
COPY . .
COPY pnpm-lock.yaml ./
RUN pnpm i --frozen-lockfile --production

COPY --from=development /usr/src/app/dist ./dist

CMD [ "npm", "run" , "start:prod" ]
CMD [ "pnpm" , "start:prod" ]
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
release: PGSSLMODE=no-verify npm run knex:prod:migrate:latest
web: npm run start:prod
web: node dist/src/main.js
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Syeta Labs NestJS Starter
# WaveZync NestJS Starter

## Description

Expand All @@ -13,23 +13,23 @@ Please go through [Nest Docs](https://docs.nestjs.com/) before playing with the
To run the application you need to have **PostgreSQL** installed.

```bash
$ npm install
$ pnpm install
```

### Running the app

```bash
# development
$ npm run start
$ pnpm start

# watch mode
$ npm run start:dev
$ pnpm start:dev

# debug mode
$ npm run start:debug
$ pnpm start:debug

# production mode
$ npm run start:prod
$ pnpm start:prod
```

### Running the app with docker :whale:
Expand Down
Loading