Cleanup dockerfile

This commit is contained in:
Pascal Vizeli 2017-12-10 22:13:40 +01:00 committed by GitHub
parent 5ce6abdbb6
commit e5e28747d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,16 @@
ARG BUILD_FROM ARG BUILD_FROM
FROM $BUILD_FROM FROM $BUILD_FROM
# add env # Add env
ENV LANG C.UTF-8 ENV LANG C.UTF-8
# setup base # Setup base
RUN apk add --no-cache python3 python3-dev \ RUN apk add --no-cache \
libressl libressl-dev \ python3 \
libffi libffi-dev \ git \
musl musl-dev \ socat
gcc libstdc++ \
git socat \
&& pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir --upgrade cryptography jwcrypto \
&& apk del python3-dev libressl-dev libffi-dev musl-dev gcc
# install HassIO # Install HassIO
COPY . /usr/src/hassio COPY . /usr/src/hassio
RUN pip3 install --no-cache-dir /usr/src/hassio \ RUN pip3 install --no-cache-dir /usr/src/hassio \
&& rm -rf /usr/src/hassio && rm -rf /usr/src/hassio