Mdean77 commited on
Commit
b3b82f6
·
1 Parent(s): 6cab193
Files changed (1) hide show
  1. Dockerfile +11 -35
Dockerfile CHANGED
@@ -9,54 +9,30 @@ RUN apt-get update && apt-get install -y \
9
  # Install uv - it installs in /root/.local/bin
10
  ADD https://astral.sh/uv/install.sh /uv-installer.sh
11
  RUN sh /uv-installer.sh && rm /uv-installer.sh
 
 
 
12
  # Set the home directory and path, need access to uv
13
- # ENV HOME=/home/user \
14
- # PATH="/home/user/.local/bin:/root/.local/bin/:$PATH"
15
 
16
  # # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
17
  ENV UVICORN_WS_PROTOCOL=websockets
18
 
19
-
20
-
21
- RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/app sh
22
- RUN sh /app/env
23
  # Set the working directory
24
- WORKDIR /app
 
 
25
 
26
  # # Copy the app to the container
27
- COPY . /app
28
 
29
  RUN chmod 777 entrypoint.sh
30
 
31
  # # Install the dependencies
32
- RUN app/uv sync --frozen
33
 
34
  # # Expose the ports
35
  EXPOSE 7860 6333
36
-
37
- ENTRYPOINT ["./entrypoint.sh"]
38
-
39
- # # Set the home directory and path, need access to uv
40
- # ENV HOME=/home/user \
41
- # PATH="/home/user/.local/bin:/root/.local/bin/:$PATH"
42
-
43
- # # # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
44
- # ENV UVICORN_WS_PROTOCOL=websockets
45
-
46
- # # Set the working directory
47
- # WORKDIR $HOME/app
48
-
49
- # RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=$HOME/app sh
50
-
51
- # # # Copy the app to the container
52
- # COPY --chown=user . $HOME/app
53
-
54
- # RUN chmod 777 entrypoint.sh
55
-
56
- # # # Install the dependencies
57
- # RUN uv sync --frozen
58
-
59
- # # # Expose the ports
60
- # EXPOSE 7860 6333
61
  # USER root
62
- # ENTRYPOINT ["./entrypoint.sh"]
 
9
  # Install uv - it installs in /root/.local/bin
10
  ADD https://astral.sh/uv/install.sh /uv-installer.sh
11
  RUN sh /uv-installer.sh && rm /uv-installer.sh
12
+ #do something
13
+
14
+
15
  # Set the home directory and path, need access to uv
16
+ ENV HOME=/home/user \
17
+ PATH="/home/user/.local/bin:/root/.local/bin/:$PATH"
18
 
19
  # # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
20
  ENV UVICORN_WS_PROTOCOL=websockets
21
 
 
 
 
 
22
  # Set the working directory
23
+ WORKDIR $HOME/app
24
+
25
+ RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=$HOME/app sh
26
 
27
  # # Copy the app to the container
28
+ COPY --chown=user . $HOME/app
29
 
30
  RUN chmod 777 entrypoint.sh
31
 
32
  # # Install the dependencies
33
+ RUN uv sync --frozen
34
 
35
  # # Expose the ports
36
  EXPOSE 7860 6333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  # USER root
38
+ ENTRYPOINT ["./entrypoint.sh"]