Mojcfghj commited on
Commit
8ba8dea
·
verified ·
1 Parent(s): 576da7b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts-buster
2
+ # Install required packages
3
+ RUN apt-get update && \
4
+ apt-get install -y \
5
+ git \
6
+ ffmpeg \
7
+ imagemagick \
8
+ webp && \
9
+ apt-get upgrade -y && \
10
+ rm -rf /var/lib/apt/lists/*
11
+
12
+ # Set the working directory
13
+ WORKDIR /app
14
+
15
+ # Clone the repository
16
+ RUN git clone https://github.com/mohmdali55555a/silana-lite-ofc/tree/master.git
17
+
18
+ # Set the working directory to the cloned repository
19
+ WORKDIR /app/silana-lite-ofc
20
+
21
+ # Grant permissions, clear cache, and install dependencies
22
+ RUN chmod -R 777 /app && \
23
+ npm cache clean --force && \
24
+ npm install --force
25
+
26
+ # Start the application
27
+ CMD ["npm", "start"]