diff --git a/.all-contributorsrc b/.all-contributorsrc index 07afc1c..180510a 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -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 } diff --git a/Dockerfile b/Dockerfile index d39cf14..02c9831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file + +CMD [ "bun", "start" ] diff --git a/package.json b/package.json index 4260395..a189ff5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "api", - "version": "7.3.0", + "version": "7.4.0", "packageManager": "yarn@3.2.4", "author": "Jasper Mayone ", "license": "EPL-2.0",