Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Changes in Dockerfile #158

Merged
merged 6 commits into from
Oct 17, 2022
Merged
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
12 changes: 11 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"imageSize": 100,
"commit": true,
"commitConvention": "gitmoji",
"contributors": [],
"contributors": [
{
"login": "90r1ll4",
"name": "Ashwin",
"avatar_url": "https://avatars.githubusercontent.com/u/45795129?v=4",
"profile": "https://github.com/90r1ll4",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7
}
33 changes: 27 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
FROM node
FROM node:bullseye
LABEL maintainer="Ashwin Singh >"
LABEL description="Heptagram-Project."

#Node env
ENV NODE_ENV=development
#ENV NODE_ENV=production

ENV PORT=3000


# Create app directory
RUN mkdir /app
WORKDIR /app

COPY package.json ./
COPY yarn.lock ./
#Nodejs bum and pm2(To use latter for scaling) install
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g pm2
RUN npm install -g ts-node
RUN curl https://bun.sh/install | bash

RUN yarn
#setting bun env path
ENV PATH="/root/.bun/bin:$PATH"
COPY package.json /app/
COPY bun.lockb /app/

#without this error of husky not installed
RUN npm i husky --save-dev
RUN bun install

# Bundle app source
COPY . .

EXPOSE 3000
CMD [ "yarn", "run", "start" ]

CMD [ "bun", "start" ]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api",
"version": "7.3.0",
"version": "7.4.0",
"packageManager": "[email protected]",
"author": "Jasper Mayone <[email protected]>",
"license": "EPL-2.0",
Expand Down