-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7616f27
commit 658ac7d
Showing
1 changed file
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
FROM quay.io/gurusensei/gurubhay:latest | ||
FROM node:lts-buster | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
ffmpeg \ | ||
imagemagick \ | ||
webp && \ | ||
apt-get upgrade -y && \ | ||
npm i pm2 -g && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY package.json . | ||
|
||
RUN git clone https://github.com/Johanlieb34/TojiMd | ||
|
||
RUN yarn install | ||
|
||
RUN git clone https://github.com/Johanlieb34/TojiMd/root/index | ||
|
||
WORKDIR /root/index/ | ||
|
||
# Copy package.json and package-lock.json files to the container | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy the rest of the application code to the container | ||
COPY . . | ||
|
||
# Expose the port the application will run on | ||
EXPOSE 3000 | ||
|
||
# Define environment variable for Render or other hosting services | ||
ENV PORT=3000 | ||
|
||
# Start the application | ||
CMD ["npm", "start"] | ||
CMD ["npm","start" ] |