Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. FROM arm64v8/ubuntu
  2. RUN apt-get update
  3. ARG LUA_VERSION=5.1
  4. RUN apt-get update && \
  5. apt-get -y upgrade && \
  6. apt-get -y install libreadline-dev libssl-dev lua5.1 liblua5.1-dev git make unzip redis-server curl libcurl4-gnutls-dev wget && \
  7. wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz && \
  8. tar zxpf luarocks-2.2.2.tar.gz && \
  9. cd luarocks-2.2.2 && \
  10. sh ./configure --lua-version=${LUA_VERSION} && \
  11. make bootstrap
  12.  
  13. WORKDIR /srv/app
  14.  
  15. ARG DEPS_ROCKS="luasec luasocket redis-lua lua-term serpent lua-cjson"
  16.  
  17. RUN for ROCK in $DEPS_ROCKS; do luarocks install $ROCK; done
  18. RUN ls /usr/include/aarch64-linux-gnu/ && ls /usr/include/aarch64-linux-gnu/curl
  19. RUN luarocks install lua-curl CURL_INCDIR=/usr/include/aarch64-linux-gnu
  20.  
  21. COPY locales locales
  22. COPY lua lua
  23. COPY polling.lua .
  24.  
  25. ARG GB_COMMIT
  26. ENV GB_COMMIT=$GB_COMMIT
  27. CMD ["lua /srv/app/polling.lua"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement