mirror of
https://github.com/hassio-addons/addon-sqlite-web.git
synced 2025-05-07 04:31:27 +00:00
64 lines
2 KiB
Docker
64 lines
2 KiB
Docker
ARG BUILD_FROM=hassioaddons/base:2.1.2
|
|
# hadolint ignore=DL3006
|
|
FROM ${BUILD_FROM}
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
# Sets working directory
|
|
#WORKDIR /data
|
|
|
|
# Setup base
|
|
RUN \
|
|
apk add --no-cache --virtual .build-dependencies \
|
|
g++=6.4.0-r8 \
|
|
gcc=6.4.0-r8 \
|
|
make=4.2.1-r2 \
|
|
python3-dev=3.6.6-r0 \
|
|
&& apk add --no-cache \
|
|
apache2-utils=2.4.34-r0 \
|
|
nginx=1.14.0-r0 \
|
|
python3=3.6.6-r0 \
|
|
&& python3 -m pip install --no-cache-dir --upgrade \
|
|
pip==18.0 \
|
|
setuptools==40.2.0 \
|
|
&& python3 -m pip install --no-cache-dir \
|
|
cython==0.28 \
|
|
&& python3 -m pip install --no-cache-dir \
|
|
flask==1.0.2 \
|
|
peewee==3.6.4 \
|
|
sqlite-web==0.3.4 \
|
|
&& apk del --purge .build-dependencies \
|
|
&& find /usr/lib/python3.6/ -type d -name test -depth -exec rm -rf {} \; \
|
|
&& find /usr/lib/python3.6/ -type d -name tests -depth -exec rm -rf {} \; \
|
|
&& find /usr/lib/python3.6/ -name __pycache__ -depth -exec rm -rf {} \;
|
|
|
|
# TODO Move up
|
|
ENV LANG en_US.utf8
|
|
|
|
# Copy root filesystem
|
|
COPY rootfs /
|
|
|
|
# Build arugments
|
|
ARG BUILD_ARCH
|
|
ARG BUILD_DATE
|
|
ARG BUILD_REF
|
|
ARG BUILD_VERSION
|
|
|
|
# Labels
|
|
LABEL \
|
|
io.hass.name="Sqlite-web" \
|
|
io.hass.description="Explore your SQLite database" \
|
|
io.hass.arch="${BUILD_ARCH}" \
|
|
io.hass.type="addon" \
|
|
io.hass.version=${BUILD_VERSION} \
|
|
maintainer="Joakim Sørensen @ludeeus <ludeeus@gmail.com>" \
|
|
org.label-schema.description="Explore your SQLite database" \
|
|
org.label-schema.build-date=${BUILD_DATE} \
|
|
org.label-schema.name="Sqlite-web" \
|
|
org.label-schema.schema-version="1.0" \
|
|
org.label-schema.url="https://community.home-assistant.io/t/community-hass-io-add-on-sqlite-web/XXXX" \
|
|
org.label-schema.usage="https://github.com/hassio-addons/addon-sqlite-web/tree/master/README.md" \
|
|
org.label-schema.vcs-ref=${BUILD_REF} \
|
|
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-sqlite-web" \
|
|
org.label-schema.vendor="Community Hass.io Add-ons"
|