Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanlieb34 authored Dec 29, 2024
1 parent 7616f27 commit 658ac7d
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions Dockerfile
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" ]

0 comments on commit 658ac7d

Please sign in to comment.