initial commit
This commit is contained in:
commit
10c655c720
10 changed files with 230 additions and 0 deletions
35
Dockerfile
Normal file
35
Dockerfile
Normal file
|
@ -0,0 +1,35 @@
|
|||
FROM thallian/confd-env:latest
|
||||
|
||||
RUN addgroup syncer
|
||||
RUN adduser -h /var/lib/koreader-sync -D -G syncer syncer
|
||||
|
||||
RUN apk --no-cache add tar make git openssl perl gcc musl-dev pcre pcre-dev openssl-dev lua lua-dev unzip curl
|
||||
RUN apk --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted add luarocks5.1
|
||||
|
||||
RUN luarocks-5.1 install luasec
|
||||
RUN luarocks-5.1 install luaposix
|
||||
RUN luarocks-5.1 install redis-lua
|
||||
RUN luarocks-5.1 install busted
|
||||
|
||||
RUN mkdir /tmp/openresty
|
||||
RUN wget -qO- https://openresty.org/download/openresty-1.9.15.1.tar.gz | tar -xz -C /tmp/openresty --strip 1
|
||||
|
||||
WORKDIR /tmp/openresty
|
||||
RUN ./configure --prefix=/opt/openresty && make && make install
|
||||
RUN rm -r /tmp/openresty
|
||||
ENV PATH /opt/openresty/nginx/sbin:$PATH
|
||||
|
||||
WORKDIR /var/lib/koreader-sync
|
||||
RUN git clone https://github.com/ostinelli/gin
|
||||
ADD /rootfs /
|
||||
|
||||
RUN cd gin && patch -N -p1 < ../gin.patch
|
||||
RUN cd gin && luarocks-5.1 make
|
||||
ENV GIN_ENV production
|
||||
|
||||
RUN git clone https://github.com/koreader/koreader-sync-server.git server
|
||||
RUN chown -R syncer:syncer /var/lib/koreader-sync
|
||||
|
||||
RUN apk del tar make git gcc musl-dev pcre-dev openssl-dev lua-dev
|
||||
|
||||
EXPOSE 7200
|
Loading…
Add table
Add a link
Reference in a new issue