2019-04-24 17:10:26 +00:00
|
|
|
FROM ubuntu:18.04 as prep
|
|
|
|
LABEL MAINTAINER="leopere [at] nixc [dot] us"
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2019-10-07 17:46:32 +00:00
|
|
|
apt-get -y install curl xz-utils && \
|
2019-04-24 17:10:26 +00:00
|
|
|
apt-get autoclean -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
2020-02-24 00:40:56 +00:00
|
|
|
RUN curl -L -o /stash $(curl -s https://api.github.com/repos/stashapp/stash/releases/latest | awk '/browser_download_url/ && /stash-linux/' | sed -e 's/.*: "\(.*\)"/\1/') && \
|
2019-04-24 17:10:26 +00:00
|
|
|
chmod +x /stash && \
|
2020-02-24 00:40:56 +00:00
|
|
|
curl --http1.1 -o /ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && \
|
2019-04-24 17:10:26 +00:00
|
|
|
tar xf /ffmpeg.tar.xz && \
|
|
|
|
rm ffmpeg.tar.xz && \
|
|
|
|
mv /ffmpeg*/ /ffmpeg/
|
|
|
|
|
|
|
|
FROM ubuntu:18.04 as app
|
2020-02-24 00:40:56 +00:00
|
|
|
RUN apt-get update && apt-get -y install ca-certificates
|
2019-04-24 17:10:26 +00:00
|
|
|
COPY --from=prep /stash /ffmpeg/ffmpeg /ffmpeg/ffprobe /usr/bin/
|
2019-05-08 02:02:03 +00:00
|
|
|
EXPOSE 9999
|
2019-04-24 17:10:26 +00:00
|
|
|
CMD ["stash"]
|