Fuegovic commited on
Commit
7cd4564
1 Parent(s): 36d5dea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -6
Dockerfile CHANGED
@@ -1,10 +1,28 @@
1
- FROM gngpp/ninja:latest
 
2
 
3
- LABEL name ninja
4
- LABEL url https://github.com/gngpp/ninja
5
 
6
- ENV LANG=C.UTF-8 DEBIAN_FRONTEND=noninteractive LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=C
 
 
 
7
 
8
- COPY --from=builder /ninja /bin/ninja
 
9
 
10
- ENTRYPOINT ["/bin/ninja"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the image from GitHub Container Registry
2
+ FROM ghcr.io/gngpp/ninja:latest
3
 
4
+ # User Setup (if needed)
5
+ RUN useradd -m -u 1001 user
6
 
7
+ # Set environment variables
8
+ ENV HOME=/home/user \
9
+ PATH=/home/user/.local/bin:$PATH \
10
+ PYTHONUNBUFFERED=1
11
 
12
+ # Set the working directory in the container to the application directory
13
+ WORKDIR /code
14
 
15
+ # Copy Python requirements file
16
+ COPY requirements.txt .
17
+
18
+ # Install Python dependencies
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy your application files into the container
22
+ COPY . /code
23
+
24
+ # Expose any ports your application might use (if applicable)
25
+ EXPOSE 7860
26
+
27
+ # Specify the command to run your Node.js application
28
+ CMD ["node", "server.js"]