generated from IKNL/v6-boilerplate-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (20 loc) · 796 Bytes
/
Dockerfile
File metadata and controls
33 lines (20 loc) · 796 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
# basic python3 image as base
FROM continuumio/miniconda3
# This is a placeholder that should be overloaded by invoking
# docker build with '--build-arg PKG_NAME=...'
ARG PKG_NAME="v6_diagnostics"
ENV PKG_NAME=${PKG_NAME}
ENV PATH="/opt/conda/envs/py310/bin/:${PATH}"
EXPOSE 8888
LABEL p8888="port8"
EXPOSE 5555
LABEL p5555="port5"
# install federated algorithm
COPY . /app
RUN apt update
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
RUN dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
RUN conda create -n py310 python=3.10
RUN pip install /app
# Tell docker to execute `docker_wrapper()` when the image is run.
CMD python -c "from vantage6.algorithm.tools.wrap import wrap_algorithm; wrap_algorithm()"