-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (43 loc) · 1.03 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (43 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM python:3.12.1
WORKDIR data_loader
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV UVICORN_WORKERS=1
# Uvicorn settings
ENV PORT=8006
ENV HOST=0.0.0.0
ENV LOG_LEVEL=INFO
ENV WORKERS=1
ENV RELOAD="True"
# Application settings
ENV TITLE="Data Loader"
ENV DESCRIPTION="Data download service"
ENV VERSION="0.0.1"
ENV DOCS_URL="/docs"
ENV REDOC_URL="/redoc"
ENV OPENAPI_URL="/openapi.json"
ENV APP_HOST=${HOST}
ENV APP_PORT=${PORT}
# Settings logging
ENV LEVEL="INFO"
ENV GURU="True"
ENV TRACEBACK="false"
# Excel File settings
# 50Mb
ENV SIZE=524288000
# Yandex disk settings
ENV YA_TOKEN=NULL
ENV YA_CLIENT_ID=NULL
ENV YA_DIR="temp_folder"
ENV YA_ATTEMPT_COUNT=2
# Telegram application settings
ENV TG_API_ID=NULL
ENV TG_API_HASH=NULL
ENV TG_BOT_TOKEN=NULL
# Building
ENV UVICORN_ARGS "core.app:setup_app --host $APP_HOST --port $APP_PORT --workers $UVICORN_WORKERS"
RUN pip install --upgrade pip --no-cache-dir
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY data_loader .
CMD uvicorn $UVICORN_ARGS