-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (37 loc) · 1.11 KB
/
Dockerfile
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
ARG PYTHON_VERSION=3.12
ARG DEBIAN_VERSION=slim-bookworm
FROM python:${PYTHON_VERSION}-${DEBIAN_VERSION}
LABEL Maintainer="Bento Project"
RUN apt-get update -y; \
apt-get upgrade -y; \
apt-get install -y \
bash \
build-essential \
curl \
git \
gosu \
jq \
libpq-dev \
perl \
procps \
vim; \
rm -rf /var/lib/apt/lists/*;
RUN pip install --no-cache-dir -U pip; \
pip install --no-cache-dir poetry==1.8.5; \
pip install --no-cache-dir 'uvicorn[standard]>=0.34.0,<0.35'
RUN mkdir /tds /run/secrets
WORKDIR /tds
COPY pyproject.toml .
COPY poetry.lock .
RUN poetry config virtualenvs.create false && \
poetry --no-cache install --without dev --no-root
COPY transcriptomics_data_service transcriptomics_data_service
COPY gosu_entrypoint.bash .
COPY run.bash .
COPY LICENSE .
COPY README.md .
# Install the module itself, locally (similar to `pip install -e .`)
RUN poetry install --without dev
RUN chmod +x ./*.bash
ENTRYPOINT [ "bash", "./gosu_entrypoint.bash" ]
CMD [ "bash", "./run.bash" ]