-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (31 loc) · 1.12 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
###
# Copyright (c) 2022 Wenzhou Institute, University of Chinese Academy of Sciences
# See the accompanying Manual for the contributors and the way to cite this work.
# Comments and suggestions welcome. Please contact
# Dr. Guanghong Zuo <ghzuo@ucas.ac.cn>
#
# @Author: Dr. Guanghong Zuo
# @Date: 2020-12-07 09:06:29
# @Last Modified By: Dr. Guanghong Zuo
# @Last Modified Time: 2022-03-22 22:49:21
###
## Stage for build cvtree
FROM alpine AS dev
LABEL Version=0.1 \
MAINTAINER="Guanghong Zuo<ghzuo@ucas.ac.cn>"\
description="Docker image for Collapse"
## for develop environment
RUN apk --update add --no-cache g++ make cmake zlib-dev
RUN apk --update add --no-cache nlohmann-json --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
## Build cltree
WORKDIR /root
COPY ./collapse /root/collapse/collapse
COPY ./kit /root/collapse/kit
COPY ./CMakeLists.txt /root/collapse/
RUN mkdir collapse/build/ && cd collapse/build/ && cmake .. && make
## Stage for run cvtree
FROM alpine AS run
COPY --from=dev /root/collapse/build/bin/* /usr/local/bin/
RUN apk --update add --no-cache libstdc++
## for workplace
WORKDIR /root/data