Skip to content

Instantly share code, notes, and snippets.

View akozlenkov's full-sized avatar

Andrey Kozlenkov akozlenkov

View GitHub Profile
@akozlenkov
akozlenkov / Dockerfile
Last active March 23, 2021 09:13
Установка home-assistant на wirenboard
FROM arm32v7/debian:stretch as builder
RUN apt-get update && apt-get install -y wget build-essential libffi-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev uuid-dev tk-dev
RUN wget -qO- https://github.com/openssl/openssl/archive/OpenSSL_1_1_1j.tar.gz | tar -xz -C /usr/src/
RUN cd /usr/src/openssl-OpenSSL_1_1_1j && ./config -Wl,-Bsymbolic-functions -fPIC shared --prefix=/usr/local/openssl && make && make install && tar cvfz /openssl-1.1.1j.tar.gz /usr/local/openssl
ENV CFLAGS="-I/usr/local/openssl/include" LDFLAGS="-L/usr/local/openssl/lib" LD_LIBRARY_PATH="/usr/local/openssl/lib" PATH="/usr/local/openssl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
@akozlenkov
akozlenkov / Dockerfile
Created October 1, 2020 15:44
wb rules emu
FROM ubuntu:bionic as golang
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:masterminds/glide && \
apt-get update && apt-get install -y gcc git wget unzip glide && apt-get clean
RUN wget -qO- https://golang.org/dl/go1.15.linux-amd64.tar.gz | tar xvz -C /usr/local && export PATH=$PATH:/usr/local/bin
ENV PATH="/usr/local/go/bin:${PATH}"
FROM golang as builder