gfjiogopdfgdfs commited on
Commit
b9e6157
·
verified ·
1 Parent(s): 547ca2d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -12
Dockerfile CHANGED
@@ -4,7 +4,6 @@ RUN apt update && apt install git build-essential libopenblas-dev wget python3-p
4
  RUN apt update && apt install -y wget
5
  RUN apt-get install -y curl
6
  RUN apt-get install -y nodejs npm
7
- RUN npm install -g localtunnel
8
  # Set up a new user named "user" with user ID 1000
9
  RUN useradd -m -u 1000 user
10
  # Switch to the "user" user
@@ -20,10 +19,6 @@ WORKDIR $HOME/app
20
  COPY --chown=user . $HOME/app
21
 
22
  # Set up the working directory
23
- ARG MODEL_PART_A
24
- ARG MODEL_PART_B
25
- ARG MODEL_NAME
26
- ARG ADDITIONAL
27
  RUN git clone https://github.com/lolcats399/tabbyAPI/
28
  WORKDIR $HOME/app/tabbyAPI
29
  RUN pip install -r requirements.txt -q
@@ -62,12 +57,6 @@ RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/spe
62
  RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/tokenizer.json?download=true -o /home/user/app/tabbyAPI/models/MiquMaid-v2-2x70B-DPO-exl2-4bpw/tokenizer.json
63
  RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/tokenizer.model?download=true -o /home/user/app/tabbyAPI/models/MiquMaid-v2-2x70B-DPO-exl2-4bpw/tokenizer.model
64
  RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/tokenizer_config.json?download=true -o /home/user/app/tabbyAPI/models/MiquMaid-v2-2x70B-DPO-exl2-4bpw/tokenizer_config.json
65
- WORKDIR $HOME/app/tabbyAPI
66
- RUN echo "#!/bin/bash" > startup.sh
67
- RUN echo "lt --port 5000 &" >> startup.sh
68
- RUN echo "public_ip=\$(wget -qO- https://loca.lt/mytunnelpassword)" >> startup.sh
69
- RUN echo "echo \"Public IP: \$public_ip\"" >> startup.sh
70
- RUN chmod +x startup.sh
71
-
72
  CMD /bin/bash -c "python3 main.py"
73
 
 
4
  RUN apt update && apt install -y wget
5
  RUN apt-get install -y curl
6
  RUN apt-get install -y nodejs npm
 
7
  # Set up a new user named "user" with user ID 1000
8
  RUN useradd -m -u 1000 user
9
  # Switch to the "user" user
 
19
  COPY --chown=user . $HOME/app
20
 
21
  # Set up the working directory
 
 
 
 
22
  RUN git clone https://github.com/lolcats399/tabbyAPI/
23
  WORKDIR $HOME/app/tabbyAPI
24
  RUN pip install -r requirements.txt -q
 
57
  RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/tokenizer.json?download=true -o /home/user/app/tabbyAPI/models/MiquMaid-v2-2x70B-DPO-exl2-4bpw/tokenizer.json
58
  RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/tokenizer.model?download=true -o /home/user/app/tabbyAPI/models/MiquMaid-v2-2x70B-DPO-exl2-4bpw/tokenizer.model
59
  RUN curl -L https://huggingface.co/NeverSleep/MiquMaid-v2-2x70B/resolve/main/tokenizer_config.json?download=true -o /home/user/app/tabbyAPI/models/MiquMaid-v2-2x70B-DPO-exl2-4bpw/tokenizer_config.json
60
+ EXPOSE 5000
 
 
 
 
 
 
61
  CMD /bin/bash -c "python3 main.py"
62