forked from Theresa/cups-webring
Initial commit
This commit is contained in:
commit
91ff76ac29
16 changed files with 913 additions and 0 deletions
66
Dockerfile
Normal file
66
Dockerfile
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
# Dockerfile - alpine-fat
|
||||
# https://github.com/openresty/docker-openresty
|
||||
#
|
||||
# This builds upon the base OpenResty alpine image that adds
|
||||
# some build-related packages, has perl installed for opm,
|
||||
# and includes luarocks and envsubst.
|
||||
#
|
||||
# NOTE: For envsubst, we install gettext (envsubst's source package),
|
||||
# copy it out, then uninstall gettext (to save some space as envsubst is very small)
|
||||
# libintl and musl are dependencies of envsubst, so those are installed as well
|
||||
|
||||
ARG RESTY_FAT_IMAGE_BASE="openresty/openresty"
|
||||
ARG RESTY_FAT_IMAGE_TAG="alpine"
|
||||
|
||||
FROM ${RESTY_FAT_IMAGE_BASE}:${RESTY_FAT_IMAGE_TAG}
|
||||
|
||||
ARG RESTY_FAT_IMAGE_BASE="openresty/openresty"
|
||||
ARG RESTY_FAT_IMAGE_TAG="alpine"
|
||||
|
||||
ARG RESTY_LUAROCKS_VERSION="3.12.0"
|
||||
|
||||
LABEL maintainer="Evan Wies <evan@neomantra.net>"
|
||||
LABEL resty_fat_image_base="${RESTY_FAT_IMAGE_BASE}"
|
||||
LABEL resty_fat_image_tag="${RESTY_FAT_IMAGE_TAG}"
|
||||
LABEL resty_luarocks_version="${RESTY_LUAROCKS_VERSION}"
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps \
|
||||
perl-dev \
|
||||
&& apk add --no-cache \
|
||||
bash \
|
||||
build-base \
|
||||
curl \
|
||||
libintl \
|
||||
linux-headers \
|
||||
make \
|
||||
musl \
|
||||
outils-md5 \
|
||||
perl \
|
||||
unzip \
|
||||
wget \
|
||||
openssl-dev\
|
||||
&& cd /tmp \
|
||||
&& curl -fSL https://luarocks.github.io/luarocks/releases/luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz -o luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
|
||||
&& tar xzf luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
|
||||
&& cd luarocks-${RESTY_LUAROCKS_VERSION} \
|
||||
&& ./configure \
|
||||
--prefix=/usr/local/openresty/luajit \
|
||||
--with-lua=/usr/local/openresty/luajit \
|
||||
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
|
||||
&& make build \
|
||||
&& make install \
|
||||
&& cd /tmp \
|
||||
&& rm -rf luarocks-${RESTY_LUAROCKS_VERSION} luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
|
||||
&& apk add --no-cache --virtual .gettext gettext \
|
||||
&& mv /usr/bin/envsubst /tmp/ \
|
||||
&& apk del .build-deps .gettext \
|
||||
&& mv /tmp/envsubst /usr/local/bin/ \
|
||||
&& luarocks install lapis
|
||||
|
||||
# Add LuaRocks paths
|
||||
# If OpenResty changes, these may need updating:
|
||||
# /usr/local/openresty/bin/resty -e 'print(package.path)'
|
||||
# /usr/local/openresty/bin/resty -e 'print(package.cpath)'
|
||||
ENV LUA_PATH="/usr/local/openresty/site/lualib/?.ljbc;/usr/local/openresty/site/lualib/?/init.ljbc;/usr/local/openresty/lualib/?.ljbc;/usr/local/openresty/lualib/?/init.ljbc;/usr/local/openresty/site/lualib/?.lua;/usr/local/openresty/site/lualib/?/init.lua;/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua;./?.lua;/usr/local/openresty/luajit/share/luajit-2.1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/openresty/luajit/share/lua/5.1/?.lua;/usr/local/openresty/luajit/share/lua/5.1/?/init.lua"
|
||||
|
||||
ENV LUA_CPATH="/usr/local/openresty/site/lualib/?.so;/usr/local/openresty/lualib/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so"
|
||||
Loading…
Add table
Add a link
Reference in a new issue