32 lines
562 B
Docker
32 lines
562 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add alpine-sdk
|
|
|
|
# Install microhttpd
|
|
RUN apk add autoconf automake libtool pkgconf git texinfo
|
|
|
|
WORKDIR /root
|
|
RUN git clone https://git.gnunet.org/libmicrohttpd.git
|
|
WORKDIR /root/libmicrohttpd
|
|
RUN ./bootstrap
|
|
RUN ./configure
|
|
RUN make
|
|
RUN make install
|
|
|
|
# Compile code
|
|
RUN apk add sqlite-dev argon2-dev libsodium-dev curl-dev xxd
|
|
|
|
RUN git clone https://git.sr.ht/~kikoodx/betterboxd /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./build.sh .
|
|
|
|
RUN ./build.sh
|
|
|
|
COPY ./docker-run.sh .
|
|
COPY ./initdb.sh .
|
|
|
|
ENTRYPOINT ["sh", "/app/docker-run.sh"] |