Create Dockerfile

This commit is contained in:
Md Jahangeer 2024-12-11 01:17:50 +05:30 committed by GitHub
parent f2d13b8483
commit 38a6614750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM node:18
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
RUN apt-get update && apt-get install -y python3 build-essential && ln -s /usr/bin/python3 /usr/bin/python
EXPOSE 3000
CMD ["node", "src/index.js"]