tests/Dockerfile

1
# Shared image for the integration tests: the official Prosody trunk image
2
# provides the XMPP server, verse's Lua dependencies (LuaSocket, LuaExpat,
3
# LuaSec, lunbound) and the prosody.* libraries used by the default build
4
# and squished into the standalone build.
5
FROM prosodyim/prosody:trunk
6
 
7
WORKDIR /verse
8
COPY . .
9
RUN lua5.4 buildscripts/squish && mkdir -p build/default && mv verse.lua build/default/ \
10
	&& lua5.4 buildscripts/squish --standalone --prosody=/usr/share/lua/5.4/prosody \
11
	&& mkdir -p build/standalone && mv verse.lua build/standalone/
12
 
13
# The base image routes every command through prosodyctl; run ours directly
14
ENTRYPOINT []
15
ENV LUA_PATH="/verse/build/default/?.lua;/verse/tests/?.lua;;"
16
CMD ["sh", "tests/run.sh"]