dropout-dl/Dockerfile

21 lines
523 B
Docker
Raw Permalink Normal View History

2023-03-18 05:05:42 +00:00
FROM alpine
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk update && \
apk add curl curl-dev sqlite-dev libgcrypt-dev alpine-sdk cmake make
# Copy application now
WORKDIR /app
COPY ./ /app
RUN cmake -S /app -B build -D DROPOUT_DL_BUILD_ALL=true
WORKDIR /app/build
RUN make && \
chmod +x dropout-dl-* && \
cp dropout-dl-* ../
WORKDIR /app
ENTRYPOINT [ "/app/dropout-dl-full" ]