forked from cocaine/cocaine-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 1.05 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
FROM ubuntu:trusty
MAINTAINER Andrey Sibiryov "[email protected]"
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq install build-essential devscripts equivs git-core
# Fetch the latest codebase
RUN git clone https://github.com/cocaine/cocaine-core --recursive -b master building/cocaine-core
# Install build dependencies
RUN cd building/cocaine-core && \
DEBIAN_FRONTEND=noninteractive mk-build-deps -ir -t "apt-get -qq --no-install-recommends"
# Build and install
RUN cd building/cocaine-core && \
debuild -e CC -e CXX -uc -us -j$(cat /proc/cpuinfo | fgrep -c processor) && \
debi
# Cleanup
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq purge cocaine-core-build-deps && \
DEBIAN_FRONTEND=noninteractive apt-get -qq purge build-essential devscripts equivs git-core && \
DEBIAN_FRONTEND=noninteractive apt-get -qq autoremove --purge && \
rm -rf building
# Setup runtime environment
RUN mkdir -p /var/run/cocaine
EXPOSE 10053
CMD ["cocaine-runtime", "-c", "/etc/cocaine/cocaine-default.conf"]