Skip to content

Commit

Permalink
Change base to Debian to fix notification issues (#8)
Browse files Browse the repository at this point in the history
This release fixes #6
  • Loading branch information
ressu authored and JackDandy committed Feb 1, 2017
1 parent 600d1ce commit 16a847c
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,31 @@
FROM python:2.7-alpine
FROM python:2.7
MAINTAINER Sami Haahtinen <[email protected]>

ENV SICKGEAR_VERSION 0.12.2
ENV GOSU_VERSION 1.9
ENV SICKGEAR_VERSION 0.12.5

# Download gosu and SickGear.
RUN apk add --update \
ca-certificates \
curl \
gcc \
gnupg \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
musl-dev \
tzdata \
RUN set -x \
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget curl libxml2-dev libxslt-dev \
&& rm -rf /var/lib/apt/lists/* \
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true \
&& \
gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && \
ARCH=`uname -m`; if [ $ARCH == "x86_64" ]; then export ARCH="amd64"; else export ARCH="i386"; fi && \
curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.6/gosu-$ARCH" && \
curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.6/gosu-$ARCH.asc" && \
gpg --verify /usr/local/bin/gosu.asc && \
rm /usr/local/bin/gosu.asc && \
chmod +x /usr/local/bin/gosu && \
mkdir /opt && \
curl -SL "https://github.com/SickGear/SickGear/archive/release_${SICKGEAR_VERSION}.tar.gz" | \
tar xz -C /opt && \
mv /opt/SickGear-release_${SICKGEAR_VERSION} /opt/SickGear && \
pip install --no-cache-dir lxml && \
pip install --no-cache-dir -r /opt/SickGear/requirements.txt && \
apk del \
ca-certificates \
curl \
gcc \
gnupg \
libxml2-dev \
libxslt-dev \
musl-dev \
&& \
rm -rf /var/cache/apk/*
pip install --no-cache-dir -r /opt/SickGear/requirements.txt \
&& rm -rf /var/lib/apt/lists/*



ENV APP_DATA="/data" PATH=/opt/SickGear:$PATH

Expand Down

0 comments on commit 16a847c

Please sign in to comment.