Spaces:
Sleeping
Sleeping
iskoldt-X
commited on
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9 as builder
|
| 2 |
+
RUN apt-get update && apt-get install -y build-essential
|
| 3 |
+
COPY requirements.txt .
|
| 4 |
+
RUN pip install --user -r requirements.txt
|
| 5 |
+
|
| 6 |
+
FROM python:3.9
|
| 7 |
+
MAINTAINER iskoldt
|
| 8 |
+
COPY --from=builder /root/.local /root/.local
|
| 9 |
+
ENV PATH=/root/.local/bin:$PATH
|
| 10 |
+
COPY . /app
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
ENV my_api_key empty
|
| 13 |
+
CMD ["python3", "-u", "ChuanhuChatbot.py", "2>&1", "|", "tee", "/var/log/application.log"]
|