pmolchanov commited on
Commit
7c9d632
·
verified ·
1 Parent(s): 057e7ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +62 -33
Dockerfile CHANGED
@@ -1,49 +1,78 @@
1
  FROM ghcr.io/tilmto/hymba:v1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
 
 
 
3
 
4
- # Set the working directory in the container
5
- WORKDIR /app
6
 
7
- COPY ./requirements.txt .
8
 
9
- # Set up a new user named "user" with user ID 1000
10
- # RUN useradd -m -u 1000 user
11
- # RUN useradd -u 1000 -ms /bin/bash pavlo
12
 
13
- # RUN groupadd -g 1000 user && \
14
- # useradd -u 1000 -g user -m user
15
 
16
- # RUN cat /etc/passwd
 
 
17
 
18
- # Switch to the "user" user
19
- # USER user
20
- # Set home to the user's home directory
21
- # ENV HOME=/home/user \
22
- # PATH=/home/user/.local/bin:$PATH \
23
- # PYTHONPATH=$HOME/app \
24
- # PYTHONUNBUFFERED=1 \
25
- ENV GRADIO_ALLOW_FLAGGING=never \
26
- GRADIO_NUM_PORTS=1 \
27
- GRADIO_SERVER_NAME=0.0.0.0 \
28
- GRADIO_THEME=huggingface \
29
- SYSTEM=spaces
30
 
31
- RUN echo "Will install packages"
32
 
33
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
34
- # RUN pip3 install --upgrade -r /code/requirements.txt
35
- # RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
 
 
 
 
 
36
 
37
- # Set the working directory to the user's home directory
38
- # WORKDIR $HOME/app
39
 
40
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
41
- # COPY --chown=user . $HOME/app
 
42
 
43
- # RUN chmod g=u /etc/passwd /etc/group
 
44
 
45
- COPY . .
 
46
 
47
- RUN echo "Hello from Dockerfile!"
 
 
 
 
 
 
48
 
49
- CMD ["python3", "app.py"]
 
1
  FROM ghcr.io/tilmto/hymba:v1
2
+ ARG DEBIAN_FRONTEND=noninteractive
3
+ ENV PYTHONUNBUFFERED=1
4
+ WORKDIR /code
5
+ # RUN groupadd -g 1000 user && \
6
+ # useradd -u 1000 -g user -m user
7
+ # RUN cat /etc/passwd
8
+ # USER user
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH \
11
+ PYTHONPATH=$HOME/app \
12
+ PYTHONUNBUFFERED=1 \
13
+ GRADIO_ALLOW_FLAGGING=never \
14
+ GRADIO_NUM_PORTS=1 \
15
+ GRADIO_SERVER_NAME=0.0.0.0 \
16
+ GRADIO_THEME=huggingface \
17
+ SYSTEM=spaces
18
+ RUN echo "Will install packages"
19
+ RUN pip3 install --no-cache-dir --progress-bar off --upgrade gradio
20
+ RUN pip3 install --no-cache-dir --progress-bar off --upgrade triton
21
+ WORKDIR $HOME/app
22
+ COPY . $HOME/app
23
 
24
+ EXPOSE 7860
25
+ RUN echo "Hello from Dockerfile!"
26
+ CMD ["python3", "app.py"]
27
 
28
+ # FROM ghcr.io/tilmto/hymba:v1
 
29
 
 
30
 
31
+ # # Set the working directory in the container
32
+ # WORKDIR /app
 
33
 
34
+ # COPY ./requirements.txt .
 
35
 
36
+ # # Set up a new user named "user" with user ID 1000
37
+ # # RUN useradd -m -u 1000 user
38
+ # # RUN useradd -u 1000 -ms /bin/bash pavlo
39
 
40
+ # # RUN groupadd -g 1000 user && \
41
+ # # useradd -u 1000 -g user -m user
 
 
 
 
 
 
 
 
 
 
42
 
43
+ # # RUN cat /etc/passwd
44
 
45
+ # # Switch to the "user" user
46
+ # # USER user
47
+ # # Set home to the user's home directory
48
+ # # ENV HOME=/home/user \
49
+ # # PATH=/home/user/.local/bin:$PATH \
50
+ # # PYTHONPATH=$HOME/app \
51
+ # # PYTHONUNBUFFERED=1 \
52
+ # ENV GRADIO_ALLOW_FLAGGING=never \
53
+ # GRADIO_NUM_PORTS=1 \
54
+ # GRADIO_SERVER_NAME=0.0.0.0 \
55
+ # GRADIO_THEME=huggingface \
56
+ # SYSTEM=spaces
57
 
58
+ # RUN echo "Will install packages"
 
59
 
60
+ # RUN pip install --no-cache-dir --upgrade -r requirements.txt
61
+ # # RUN pip3 install --upgrade -r /code/requirements.txt
62
+ # # RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
63
 
64
+ # # Set the working directory to the user's home directory
65
+ # # WORKDIR $HOME/app
66
 
67
+ # # Copy the current directory contents into the container at $HOME/app setting the owner to the user
68
+ # # COPY --chown=user . $HOME/app
69
 
70
+ # # RUN chmod g=u /etc/passwd /etc/group
71
+
72
+ # COPY . .
73
+
74
+ # EXPOSE 7860
75
+
76
+ # RUN echo "Hello from Dockerfile!"
77
 
78
+ # CMD ["python3", "app.py"]