Samleuma commited on
Commit
e421da5
·
verified ·
1 Parent(s): 3bb9161

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM quay.io/lyfe00011/md:beta
2
+
3
+ # Add the non-root user
4
+ RUN useradd -m user
5
+
6
+ # Switch to the non-root user for all subsequent commands
7
+ USER user
8
+
9
+ # Set the working directory to the user's home and create the subdirectory
10
+ WORKDIR /home/user/LyFE/
11
+
12
+ # Clone the repository into the new working directory
13
+ RUN git clone https://github.com/lyfe00011/levanter.git
14
+
15
+ # Move to the project's root for the next steps
16
+ WORKDIR /home/user/LyFE/levanter
17
+
18
+ # Install dependencies (will now be installed in the correct, writable directory)
19
+ RUN yarn install
20
+
21
+ # Expose the port and define the startup command
22
+ ENV PORT=7860
23
+ EXPOSE 7860
24
+ CMD ["npm", "start"]