maksym-work commited on
Commit
0e13e28
·
1 Parent(s): 46f63d2

Refactor Dockerfile and entrypoint script: removed unnecessary packages, set default for SKIP_LLAMA_CPP_BUILD, and changed server port to 7860.

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. entrypoint.sh +1 -1
Dockerfile CHANGED
@@ -29,7 +29,8 @@ RUN mkdir -p /data/models
29
  RUN chown -R 1000:1000 /data/models
30
 
31
  RUN apt-get update
32
- RUN apt-get install gnupg curl git cmake clang libgomp1 -y
 
33
 
34
  RUN npx playwright install --with-deps chromium
35
 
@@ -54,7 +55,8 @@ COPY --link --chown=1000 package-lock.json package.json ./
54
 
55
  ARG APP_BASE=
56
  ARG PUBLIC_APP_COLOR=blue
57
- ARG SKIP_LLAMA_CPP_BUILD
 
58
  ENV BODY_SIZE_LIMIT=15728640
59
  ENV SKIP_LLAMA_CPP_BUILD=$SKIP_LLAMA_CPP_BUILD
60
 
 
29
  RUN chown -R 1000:1000 /data/models
30
 
31
  RUN apt-get update
32
+ # Removed cmake, clang, libgomp1 as they're not needed for HF models
33
+ RUN apt-get install gnupg curl git -y
34
 
35
  RUN npx playwright install --with-deps chromium
36
 
 
55
 
56
  ARG APP_BASE=
57
  ARG PUBLIC_APP_COLOR=blue
58
+ # Skip llama.cpp build by default to use HF public models
59
+ ARG SKIP_LLAMA_CPP_BUILD=true
60
  ENV BODY_SIZE_LIMIT=15728640
61
  ENV SKIP_LLAMA_CPP_BUILD=$SKIP_LLAMA_CPP_BUILD
62
 
entrypoint.sh CHANGED
@@ -16,4 +16,4 @@ fi;
16
 
17
  export PUBLIC_VERSION=$(node -p "require('./package.json').version")
18
 
19
- dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 3000
 
16
 
17
  export PUBLIC_VERSION=$(node -p "require('./package.json').version")
18
 
19
+ dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 7860