cheyman commited on
Commit
2cddc5c
·
verified ·
1 Parent(s): 3971dd9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -14
Dockerfile CHANGED
@@ -2,24 +2,17 @@ FROM ghcr.io/cheymin/snowluma:latest
2
 
3
  USER root
4
 
5
- RUN apt-get update && apt-get install -y nginx curl && rm -rf /var/lib/apt/lists/*
6
-
7
- RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
8
- apt-get install -y nodejs && \
9
- rm -rf /var/lib/apt/lists/*
10
-
11
- RUN rm -f /usr/local/bin/node /usr/local/bin/npm /usr/local/bin/npx
12
-
13
- RUN mkdir -p /var/log/nginx /var/lib/nginx /tmp/nginx /app/logs /app/data /app/config && \
14
- chown -R snowluma:snowluma /var/log/nginx /var/lib/nginx /tmp/nginx /app/logs /app/data /app/config
15
 
16
  ENV SNOWLUMA_WEBUI_PORT=5099
17
- ENV SNOWLUMA_HOOK_AUTOLOAD=1
18
 
19
  COPY nginx.conf /etc/nginx/nginx.conf
20
- COPY entrypoint.sh /entrypoint.sh
21
- RUN chmod +x /entrypoint.sh
22
 
23
  USER snowluma
24
 
25
- ENTRYPOINT ["/entrypoint.sh"]
 
2
 
3
  USER root
4
 
5
+ RUN apt-get update && apt-get install -y --no-install-recommends nginx \
6
+ && rm -rf /var/lib/apt/lists/* \
7
+ && mkdir -p /var/log/nginx /var/lib/nginx /tmp/nginx \
8
+ && chown -R snowluma:snowluma /var/log/nginx /var/lib/nginx /tmp/nginx
 
 
 
 
 
 
9
 
10
  ENV SNOWLUMA_WEBUI_PORT=5099
 
11
 
12
  COPY nginx.conf /etc/nginx/nginx.conf
13
+ COPY entrypoint.sh /hf-entrypoint.sh
14
+ RUN chmod +x /hf-entrypoint.sh
15
 
16
  USER snowluma
17
 
18
+ ENTRYPOINT ["/hf-entrypoint.sh"]