Corin1998 commited on
Commit
d40b23a
·
verified ·
1 Parent(s): e02839f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+
4
+ ENV PYTHONDONTWRITEBYTECODE=1 \
5
+ PYTHONUNBUFFERED=1 \
6
+ PIP_DISABLE_PIP_VERSION_CHECK=on \
7
+ PIP_NO_CACHE_DIR=on
8
+
9
+
10
+ # system deps for prophet / neuralprophet
11
+ RUN apt-get update && apt-get install -y --no-install-recommends \
12
+ build-essential \
13
+ libatlas-base-dev \
14
+ libpq-dev \
15
+ git \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+
19
+ WORKDIR /workspace
20
+ COPY requirements.txt ./
21
+ RUN pip install --upgrade pip && pip install -r requirements.txt
22
+
23
+
24
+ COPY app ./app
25
+ COPY scripts ./scripts
26
+ COPY README.md ./README.md
27
+
28
+
29
+ # Spacesはデフォルトで:7860を期待
30
+ EXPOSE 7860
31
+
32
+
33
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]