pmolchanov commited on
Commit
d7c0aed
·
verified ·
1 Parent(s): 7528883

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -17
Dockerfile CHANGED
@@ -1,30 +1,28 @@
1
  FROM ghcr.io/tilmto/hymba:v1
2
 
3
- ARG DEBIAN_FRONTEND=noninteractive
4
 
5
- ENV PYTHONUNBUFFERED=1
 
6
 
7
- WORKDIR /code
8
-
9
- COPY ./requirements.txt /code/requirements.txt
10
 
11
  # Set up a new user named "user" with user ID 1000
12
  # RUN useradd -m -u 1000 user
13
  # RUN useradd -u 1000 -ms /bin/bash pavlo
14
 
15
- RUN groupadd -g 1000 user && \
16
- useradd -u 1000 -g user -m user
17
 
18
- RUN cat /etc/passwd
19
 
20
  # Switch to the "user" user
21
- USER user
22
  # Set home to the user's home directory
23
- ENV HOME=/home/user \
24
- PATH=/home/user/.local/bin:$PATH \
25
- PYTHONPATH=$HOME/app \
26
- PYTHONUNBUFFERED=1 \
27
- GRADIO_ALLOW_FLAGGING=never \
28
  GRADIO_NUM_PORTS=1 \
29
  GRADIO_SERVER_NAME=0.0.0.0 \
30
  GRADIO_THEME=huggingface \
@@ -32,17 +30,19 @@ ENV HOME=/home/user \
32
 
33
  RUN echo "Will install packages"
34
 
35
- RUN pip3 install --upgrade -r /code/requirements.txt
 
36
  # RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
37
 
38
  # Set the working directory to the user's home directory
39
- WORKDIR $HOME/app
40
 
41
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
42
- COPY --chown=user . $HOME/app
43
 
44
  # RUN chmod g=u /etc/passwd /etc/group
45
 
 
46
 
47
  RUN echo "Hello from Dockerfile!"
48
 
 
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 \
 
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