OpceanAI commited on
Commit
e8784a4
·
verified ·
1 Parent(s): b2a9185

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -23
Dockerfile CHANGED
@@ -1,33 +1,15 @@
1
- FROM node:20.9.0-bullseye
2
-
3
- RUN apt-get update && apt-get install -y --no-install-recommends \
4
- git \
5
- git-lfs \
6
- bash \
7
- curl \
8
- wget \
9
- procps \
10
- ca-certificates \
11
- && rm -rf /var/lib/apt/lists/* \
12
- && git lfs install
13
-
14
- RUN useradd -m -u 1000 appuser
15
 
16
  WORKDIR /app
17
 
18
- RUN chown -R appuser:appuser /app
19
-
20
- USER appuser
21
 
22
- RUN git clone --depth 1 https://github.com/aguitauwu/aguita.site.git /app
23
-
24
- RUN npm ci || npm install
25
 
 
26
  RUN npm run build
27
 
28
  ENV PORT=7860
29
- ENV HOSTNAME=0.0.0.0
30
-
31
  EXPOSE 7860
32
 
33
- CMD ["sh", "-lc", "npm run start -- --hostname 0.0.0.0 --port 7860"]
 
1
+ FROM node:24-bullseye
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y bash git && rm -rf /var/lib/apt/lists/*
 
 
6
 
7
+ COPY . .
 
 
8
 
9
+ RUN npm install
10
  RUN npm run build
11
 
12
  ENV PORT=7860
 
 
13
  EXPOSE 7860
14
 
15
+ CMD ["sh", "start.sh"]