-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (33 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
44 lines (33 loc) · 1.06 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
FROM us.gcr.io/broad-dsp-gcr-public/base/python:3.12-debian
# Install required packages
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
pandoc \
&& apt update && apt install -yq --no-install-recommends \
libcurl4-openssl-dev \
libssl-dev \
libffi-dev \
libgeos-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install R
RUN apt-get update && apt-get install -y --no-install-recommends \
r-base \
r-base-dev \
libffi-dev
RUN R -e 'install.packages(c("rmarkdown", "stringi", "tidyverse", "Seurat", "ggforce"))'
COPY . /work
WORKDIR /work
# Install Poetry and dependencies
ENV POETRY_HOME="/opt/poetry" \
POETRY_VIRTUALENVS_CREATE=false \
POETRY_VIRTUALENVS_IN_PROJECT=false \
POETRY_NO_INTERACTION=1 \
POETRY_VERSION=1.8.2
ENV PATH="$PATH:$POETRY_HOME/bin"
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.3.2
COPY poetry.lock .
COPY pyproject.toml .
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
EXPOSE 8080
CMD gunicorn -b :8080 main:app