feat/b2b-sample-requests #30

Merged
mihir merged 2 commits from feat/b2b-sample-requests into main 2026-10-02 23:59:19 +05:30
3 changed files with 76 additions and 0 deletions
Showing only changes of commit cbc89a001c - Show all commits

12
.dockerignore Normal file
View File

@ -0,0 +1,12 @@
node_modules
dist
.env
.env.*
!.env.example
.git
.gitignore
coverage
*.log
Dockerfile
docker-compose.yml

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
kind: pipeline
type: docker
name: build-deploy
steps:
- name: Build Docker Image
image: plugins/docker
settings:
registry: git.midastix.com
repo: git.midastix.com/ci-docker-repo-user/manicandle-backend
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
when:
branch:
- main
event:
- push
- name: Deploy
image: appleboy/drone-ssh
settings:
host: api.midastix.com
username: manicandle-backend
key:
from_secret: server_ssh_pkey
port: 22
command_timeout: 3m
script:
- echo "Deploying manicandle-backend"
- sudo /opt/deployable/manicandle-backend/docker/deploy.sh
- echo "Deployment completed"
when:
branch:
- main
event:
- push

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
FROM node:24.15-alpine
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@11.19.0 --activate
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY prisma ./prisma
COPY prisma.config.ts ./
RUN pnpm install --frozen-lockfile
COPY tsconfig.json tsconfig.build.json ./
COPY src ./src
RUN pnpm db:generate
RUN pnpm build
ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
CMD ["pnpm", "start"]