-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (23 loc) · 983 Bytes
/
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
FROM buildpack-deps:stretch
MAINTAINER Sergei O. Udalov <[email protected]>
RUN apt-get update
RUN apt-get install -y -qq git cmake g++ libfuse-dev libcurl4-gnutls-dev libjsoncpp-dev glusterfs-client
ENV MARCFS_REVISION=44404557fe50b50d77bd1b3b942aaa1ddf5156b7
RUN git clone https://gitlab.com/Kanedias/MARC-FS.git /usr/local/src/marc-fs && \
cd /usr/local/src/marc-fs && git checkout $MARCFS_REVISION && \
git submodule init && git submodule update && \
mkdir /usr/local/src/marc-fs/build && \
cd /usr/local/src/marc-fs/build && cmake .. && make && \
mv /usr/local/src/marc-fs/build/marcfs /usr/local/bin/
COPY docker-entrypoint.sh /usr/local/bin/
COPY mount-mail-ru.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/*
RUN adduser --system app
USER app
RUN mkdir /tmp/mailru
RUN mkdir /tmp/cache
ENV MAILRU_AUTOMOUNT=true
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["bash"]