forked from biocommons/uta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (26 loc) · 850 Bytes
/
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
FROM ubuntu:22.04 as uta
# set python version and define arguments
ARG python_version="3.10"
# list and install dependencies
ARG dependencies="python${python_version} python3-dev python3-pip rsync git postgresql-client-14 tabix"
RUN apt-get update && apt-get install -y $dependencies && apt-get clean
# install pysam, copy code, and run pip install
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN python -m pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip install pysam
WORKDIR /opt/repos/uta/
COPY pyproject.toml ./
COPY etc ./etc
COPY misc ./misc
COPY sbin ./sbin
COPY src ./src
RUN pip install -e .[dev]
# UTA test image
FROM uta as uta-test
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install postgresql
COPY tests ./tests
RUN pip install -e .[test]
RUN useradd uta-tester
RUN chown -R uta-tester .
USER uta-tester