mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-03 12:14:19 +01:00
* Initial support for almond * Fix execution * Fix package * fix style * Use package * Try origin * Fix build * Fix build * Support multiarch * Fix readme * Remove i386 * Fix pipeline * Update version * cleanup * Fix name * test-ingress * Improve nginx * cleanup config * add panel icon * Add support for ingress * Add API access * Fix script * Fix panel icon * fix quite mode * Update run.sh * Fix auth * Update almond version * Update version * Fix lint * do not modify hostname * Update version * Address comments * Fix nginx * cleanup * working * Update version * Fix API injection * cleanup nginx config * do not set an refresh token * Update almond/data/run.sh Co-Authored-By: Paulus Schoutsen <balloob@gmail.com> * Fix command * change timehandling * debug code * debug v2 * Fix value * Debug v3 * Cleanup * Fix token valid * Fix command * Add debug * Add unzip * Fix config settings
50 lines
1.4 KiB
Docker
50 lines
1.4 KiB
Docker
ARG BUILD_FROM
|
|
FROM ${BUILD_FROM}
|
|
|
|
# Install Alomond requirements
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
software-properties-common \
|
|
gnupg \
|
|
nginx \
|
|
unzip \
|
|
\
|
|
&& curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
|
|
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
|
&& echo "deb https://deb.nodesource.com/node_12.x buster main" > /etc/apt/sources.list.d/nodesource.list \
|
|
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
|
|
\
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
nodejs \
|
|
yarn \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
# Install Almond
|
|
ARG ALMOND_COMMIT
|
|
WORKDIR /opt/almond
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
python-dev \
|
|
build-essential \
|
|
\
|
|
&& git clone https://github.com/stanford-oval/almond-server . \
|
|
&& git checkout ${ALMOND_COMMIT} \
|
|
&& rm -fr .git \
|
|
&& yarn \
|
|
\
|
|
&& apt-get purge -y --auto-remove \
|
|
git \
|
|
python-dev \
|
|
build-essential \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& rm -fr /root/.cache
|
|
|
|
# Base env settings
|
|
ENV LANG=en_US.utf8
|
|
ENV THINGENGINE_HOME=/data/almond-server
|
|
ENV THINGENGINE_HOST_BASED_AUTHENTICATION=local-ip
|
|
|
|
COPY data/run.sh /
|
|
COPY data/nginx.conf /etc/nginx/
|
|
|
|
CMD ["/run.sh"] |