-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (26 loc) · 907 Bytes
/
Dockerfile
File metadata and controls
29 lines (26 loc) · 907 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
FROM cosyverif/docker-images:openresty
MAINTAINER Alban Linard <alban@linard.fr>
ADD . /src/cosy/github
ADD mime.types /mime.types
ADD nginx.conf /nginx.conf
ADD models.lua /models.lua
ADD migrations.lua /migrations.lua
ADD views /views
RUN apk add --no-cache --virtual .build-deps \
build-base \
make \
perl \
openssl-dev \
skalibs-dev \
&& apk add --no-cache \
openssh-client \
skalibs \
&& cd /src/cosy/github/ \
&& git clone https://github.com/jprjr/sockexec.git \
&& cd sockexec && make && make install && cd .. \
&& mkdir -p /data && cp -r src/www /data/www \
&& luarocks install rockspec/lua-resty-qless-develop-0.rockspec \
&& luarocks make rockspec/cosy-github-master-1.rockspec \
&& rm -rf /src/cosy/github \
&& apk del .build-deps
ENTRYPOINT ["cosy"]