-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (35 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
39 lines (35 loc) · 1.18 KB
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
35
36
37
38
39
FROM alpine:latest
RUN apk add --no-cache wget\
git\
make\
postgresql-client\
automake\
openssl-dev\
libtool\
autoconf\
gcc\
libc-dev\
postgresql-dev\
jansson-dev
RUN (cd /opt && git clone --depth 1 https://git.sr.ht/~qpfiffer/ThirtyEight-Moths && \
cd ThirtyEight-Moths && make && make install)
RUN (cd /opt && wget https://github.com/technion/libscrypt/archive/v1.21.tar.gz && \
tar -xf v1.21.tar.gz && cd libscrypt-1.21 && make && make install)
RUN (cd /opt && wget https://github.com/benmcollins/libjwt/archive/v1.12.0.tar.gz && \
tar -xf v1.12.0.tar.gz && cd libjwt-1.12.0 && autoreconf -i && ./configure && \
make && make install)
RUN (mkdir -p /opt/mon && cd /opt/mon && wget https://github.com/tj/mon/archive/master.tar.gz && tar -xf ./master.tar.gz && \
cd mon-master && make install)
RUN mkdir -p /app
COPY src /app/src
COPY sql /app/sql
COPY rsa256.key /app/rsa256.key
COPY rsa256.key.pub /app/rsa256.key.pub
COPY include /app/include
COPY templates /app/templates
COPY static /app/static
COPY Makefile /app/Makefile
RUN cd /app; make
COPY run/logproj.sh /etc/service/logproj/run
EXPOSE 8666
CMD ["/etc/service/logproj/run"]