forked from pastakhov/docker-restbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 734 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
33
34
FROM node:10
MAINTAINER pastakhov@yandex.ru
ENV RB_HOME=/var/lib/restbase \
RB_DATA=/data \
RB_USER=restbase \
RB_BRANCH=v0.19.3
# restbase setup
RUN set -x; \
# Core
mkdir -p $RB_HOME \
&& git clone \
--branch $RB_BRANCH \
--single-branch \
--depth 1 \
--quiet \
https://github.com/wikimedia/restbase.git \
$RB_HOME \
&& cd $RB_HOME \
&& npm install \
&& useradd -U -r -s /bin/bash $RB_USER \
&& mkdir -p $RB_DATA \
&& chown -R $RB_USER:$RB_USER $RB_DATA
COPY run-restbase.sh /run-restbase.sh
RUN chmod -v +x /run-restbase.sh
COPY projects_docker.yaml $RB_HOME/projects/docker.yaml
EXPOSE 7231
CMD ["/run-restbase.sh"]
VOLUME $RB_DATA