attempting to build from py image
This commit is contained in:
1 parent
3db67431e1
commit
07c00e3999
3 files changed
+8
-14
No files matched your search
+6
-12
@@ -1,27 +1,21 @@
|
||||
# <--- Build Args -->
|
||||
ARG BUILD_FROM
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# <--- Image Setup -->
|
||||
FROM $BUILD_FROM
|
||||
FROM homeassistant/${BUILD_ARCH}-base-python:3.9-alpine3.14
|
||||
WORKDIR /data
|
||||
|
||||
# <--- System Wide Dependencies -->
|
||||
ENV LANG C.UTF-8
|
||||
RUN echo "https://dl-3.alpinelinux.org/alpine/v3.10/main" >> /etc/apk/repositories
|
||||
RUN echo "https://dl-3.alpinelinux.org/alpine/v3.10/community" >> /etc/apk/repositories
|
||||
RUN apk add --no-cache \
|
||||
cargo \
|
||||
rust \
|
||||
gcompat \
|
||||
nodejs \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py3-pip \
|
||||
patchelf \
|
||||
rust
|
||||
RUN patchelf --add-needed libgcompat.so.0 /usr/bin/python3.9
|
||||
RUN echo 'manylinux1_compatible = True' > /usr/lib/python3.9/_manylinux.py
|
||||
RUN pip install -U wheel pip
|
||||
build-base \
|
||||
python3-dev
|
||||
RUN pip install -U wheel setuptools pip
|
||||
|
||||
# <--- Python Dependencies -->
|
||||
COPY api/setup.py /data/setup.py
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name: Shortumation
|
||||
version: 0.0.6
|
||||
version: 0.0.6b
|
||||
slug: shortumation
|
||||
url: "https://github.com/asosnovsky/Shortumation"
|
||||
description: "A homeassitant addon which provides better UI for automations & scripts."
|
||||
|
||||
@@ -6,4 +6,4 @@ services:
|
||||
context: "./"
|
||||
dockerfile: "./Dockerfile"
|
||||
args:
|
||||
- BUILD_FROM=homeassistant/${ARCH:-amd64}-base:latest
|
||||
- BUILD_ARCH=${ARCH:-amd64}
|
||||
Reference in new issue
Block a user