-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
32 lines (24 loc) · 803 Bytes
/
Dockerfile.dev
File metadata and controls
32 lines (24 loc) · 803 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
ARG CMONGO_VERSION=1.0b-13
ARG CERVER_VERSION=2.0b-43
ARG BUILD_DEPS='ca-certificates libssl-dev gdb'
FROM ermiry/mongoc:builder
ARG BUILD_DEPS
RUN apt-get update && apt-get install -y ${BUILD_DEPS}
# cmongo
ARG CMONGO_VERSION
RUN mkdir /opt/cmongo && cd /opt/cmongo \
&& wget -q --no-check-certificate https://github.com/ermiry-com/cmongo/archive/${CMONGO_VERSION}.zip \
&& unzip ${CMONGO_VERSION}.zip \
&& cd cmongo-${CMONGO_VERSION} \
&& make -j4 && make install
# cerver
ARG CERVER_VERSION
RUN mkdir /opt/cerver && cd /opt/cerver \
&& wget -q https://github.com/ermiry/cerver/archive/${CERVER_VERSION}.zip \
&& unzip ${CERVER_VERSION}.zip \
&& cd cerver-${CERVER_VERSION} \
&& make -j4 && make install
RUN ldconfig
# test
WORKDIR /home/test
CMD ["/bin/bash"]