NOT-OMEGA commited on
Commit
11b2bc4
·
verified ·
1 Parent(s): c11b4f4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -29
Dockerfile CHANGED
@@ -1,29 +0,0 @@
1
- FROM ubuntu:22.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- ENV PYTHONUNBUFFERED=1
5
-
6
- RUN apt-get update && apt-get install -y \
7
- g++ python3 python3-pip \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Fix 1: Added huggingface-hub here
11
- RUN pip3 install --no-cache-dir \
12
- fastapi uvicorn tiktoken psutil httpx pydantic huggingface-hub
13
-
14
- WORKDIR /app
15
-
16
- COPY inference.cpp .
17
- COPY main.py .
18
- COPY index.html .
19
- # Fix 2: Removed 'COPY model.bin .' from here
20
-
21
- RUN g++ -O3 -march=x86-64 -mavx2 -mfma -fopenmp -ffast-math -std=c++17 \
22
- -o inference inference.cpp && chmod +x inference
23
-
24
- RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
25
- USER appuser
26
-
27
- EXPOSE 7860
28
-
29
- CMD uvicorn main:app --host 0.0.0.0 --port 7860 --no-access-log