-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (36 loc) · 975 Bytes
/
Copy pathDockerfile
File metadata and controls
44 lines (36 loc) · 975 Bytes
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
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
R_HOME=/usr/lib/R
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
r-base \
r-base-dev \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
# CRAN may not ship ffanalytics for the distro R version; install from GitHub.
RUN Rscript -e '\
install.packages("remotes", repos = "https://cloud.r-project.org"); \
remotes::install_github( \
"FantasyFootballAnalytics/ffanalytics", \
upgrade = "never", \
dependencies = TRUE \
) \
'
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY config.py .
COPY api/ api/
COPY rag/ rag/
COPY draft/ draft/
COPY sdks/ sdks/
COPY app/ app/
COPY scripts/ scripts/
RUN chmod +x scripts/docker-entrypoint-api.sh scripts/docker-entrypoint-ui.sh
EXPOSE 8000 8501