Skip to content

Commit

Permalink
[docker] fix broken cjson
Browse files Browse the repository at this point in the history
  • Loading branch information
mikz committed Jun 13, 2018
1 parent 59d3eb2 commit f189989
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.7

LABEL maintainer "Michal Cichra <michal@cichra.cz>"
LABEL maintainer="Michal Cichra <michal@cichra.cz>"
ENV LUA_VERSION=5.3 LUACHECK_VERSION=0.21.2

WORKDIR /tmp
Expand All @@ -10,10 +10,11 @@ RUN adduser -D -H -h /code -u 9000 -s /bin/false app \
&& apk add --no-cache --virtual build-dependencies \
lua${LUA_VERSION}-dev build-base curl ruby-dev icu-dev zlib-dev openssl-dev cmake \
&& luarocks-${LUA_VERSION} install luacheck ${LUACHECK_VERSION} \
&& luarocks-${LUA_VERSION} install lua-cjson \
&& luarocks-${LUA_VERSION} install lua-cjson 2.1.0-1 \
&& BUNDLE_SILENCE_ROOT_WARNING=1 bundle install --system \
&& apk del build-dependencies \
&& ln -s $(which lua${LUA_VERSION}) /usr/local/bin/lua
&& ln -s $(which lua${LUA_VERSION}) /usr/local/bin/lua \
&& lua -e 'require("cjson").encode({})'

USER app
VOLUME /code
Expand Down

0 comments on commit f189989

Please sign in to comment.