Suku0 commited on
Commit
490d3b9
1 Parent(s): 94f5c11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -25
Dockerfile CHANGED
@@ -1,25 +1,25 @@
1
- FROM python:3.10-slim
2
-
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV PATH="/home/user/.local/bin:$PATH"
6
-
7
- WORKDIR /app
8
- USER root
9
- RUN apt-get update && apt-get install -y \
10
- gcc \
11
- g++ \
12
- cmake \
13
- build-essential \
14
- libstdc++6 \
15
- && rm -rf /var/lib/apt/lists/*
16
-
17
- USER user
18
-
19
- COPY --chown=user ./requirements.txt requirements.txt
20
-
21
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
-
23
- COPY --chown=user . /app
24
-
25
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+ USER root
9
+ RUN apt-get update && apt-get install -y \
10
+ gcc \
11
+ g++ \
12
+ cmake \
13
+ build-essential \
14
+ libstdc++6 \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ USER user
18
+
19
+ COPY --chown=user ./requirements.txt requirements.txt
20
+
21
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
+
23
+ COPY --chown=user . /app
24
+
25
+ CMD ["uvicorn", "demo:app", "--host", "0.0.0.0", "--port", "7860"]