-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Magic new dependency on git for lua-jsonschema's image.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM alpine:3.21 | ||
RUN apk add --no-cache luajit luajit-dev pcre-dev gcc libc-dev curl make cmake && \ | ||
RUN apk add --no-cache luajit luajit-dev pcre-dev gcc libc-dev curl git make cmake && \ | ||
wget 'https://luarocks.org/releases/luarocks-3.9.2.tar.gz' && \ | ||
tar -xf luarocks-3.9.2.tar.gz && rm luarocks-3.9.2.tar.gz && \ | ||
cd luarocks-3.9.2 && ./configure && make && make install && \ | ||
cd .. && rm -r luarocks-3.9.2 && \ | ||
sed -i '/WGET/d' /usr/local/share/lua/5.1/luarocks/fs/tools.lua && \ | ||
luarocks install jsonschema && \ | ||
apk del luajit-dev gcc libc-dev curl make cmake | ||
apk del luajit-dev gcc git libc-dev curl make cmake | ||
WORKDIR /usr/src/myapp | ||
COPY json.lua bowtie_jsonschema.lua . | ||
CMD ["luajit", "bowtie_jsonschema.lua"] |