-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (29 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
33 lines (29 loc) · 1.08 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
FROM python:3.9.19-slim
ARG DEVELOPMENT
# Install the mash binary
WORKDIR /opt
RUN apt-get update && apt-get install -y curl && \
curl -LJO https://github.com/marbl/Mash/releases/download/v2.0/mash-Linux64-v2.0.tar && \
tar xvf mash-Linux64-v2.0.tar && \
rm mash-Linux64-v2.0.tar && \
ln -s /opt/mash-Linux64-v2.0/mash /usr/bin/mash && \
apt-get remove -y curl && apt-get autoremove -y && \
/usr/bin/mash
# Install dependencies
WORKDIR /kb/module
COPY requirements.txt /kb/module/requirements.txt
COPY dev-requirements.txt /kb/module/dev-requirements.txt
WORKDIR /kb/module
RUN pip install --upgrade pip && \
pip install pandas==2.2.3 && \
pip install --upgrade -r requirements.txt \
kbase-workspace-client==0.2.1 && \
pip install --extra-index-url https://pypi.anaconda.org/kbase/simple \
kbase_cache_client==0.0.2 && \
if [ "$DEVELOPMENT" ]; then pip install -r dev-requirements.txt; fi
# Run the server
COPY . /kb/module
COPY .env.example /kb/module/.env
RUN chmod -R a+rw /kb/module
EXPOSE 5000
ENTRYPOINT ["sh", "/kb/module/entrypoint.sh"]