Skip to content

Commit

Permalink
Merge pull request #5 from bristleio/buildfix
Browse files Browse the repository at this point in the history
Buildfix
  • Loading branch information
LoganAvatar authored Dec 22, 2017
2 parents b7edf86 + 15304b2 commit 3fa176e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
FROM resin/raspberrypi3-alpine-python:3.6-slim
FROM lsiobase/mono.armhf
MAINTAINER loganavatar

# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV XDG_CONFIG_HOME="/config/xdg"

# set version label
ARG BUILD_DATE
ARG VERSION
ARG GIT_URL='https://github.com/JonnyWong16/plexpy'
LABEL build_version="bristle.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"

COPY qemu-arm-static /usr/bin/qemu-arm-static

# install packages
RUN \
apk add --no-cache --virtual=build-dependencies \
g++ \
gcc \
make \
git \
python-dev && \

# install pycryptodomex
pip install --no-cache-dir -U \
pycryptodomex

apt-get update && \
apt-get install -y \
git && \
# check to see if tag exists
RUN \
remotecheck=$(git ls-remote --tags $GIT_URL $VERSION | wc -l) && \

# install app
if [ $remotecheck = 0 ]; then \
echo "Bad tag name, $VERSION" && \
Expand All @@ -32,18 +28,16 @@ RUN \
echo "Cloning $VERSION" && \
git clone --branch $VERSION --depth 1 $GIT_URL /app/plexpy; \
fi && \

# cleanup
apk del --purge \
build-dependencies && \
apt-get clean && \
rm -rf \
/root/.cache
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*

# add local files
COPY root/ /

# ports and volumes
VOLUME /config /logs
EXPOSE 8181

CMD python /app/plexpy/PlexPy.py --datadir /config
Binary file added armhf/qemu-arm-static
Binary file not shown.

0 comments on commit 3fa176e

Please sign in to comment.