Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
FROM openresty/openresty:xenial AS base
FROM openresty/openresty:noble AS base

USER root

WORKDIR /usr/src
# ENV HOME=/usr/src

RUN apt-get update
RUN apt-get install -y libssl-dev

# RUN cd $HOME

RUN curl -L -o /tmp/luarocks-3.12.2-1.src.rock https://luarocks.org/luarocks-3.12.2-1.src.rock &&\
luarocks install /tmp/luarocks-3.12.2-1.src.rock &&\
rm /tmp/luarocks-3.12.2-1.src.rock


FROM base AS build
COPY ./lua_resty_netacea-0.2-2.rockspec ./
COPY ./lua_resty_netacea-1.0-0.rockspec ./
COPY ./src ./src
RUN /usr/local/openresty/luajit/bin/luarocks make ./lua_resty_netacea-0.2-2.rockspec
RUN /usr/local/openresty/luajit/bin/luarocks make ./lua_resty_netacea-1.0-0.rockspec

FROM build AS test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package = "lua_resty_netacea"
version = "0.2-2"
version = "1.0-0"
source = {
url = "git://github.com/Netacea/lua_resty_netacea",
branch = "master"
}
description = {
summary = "An Openresty module for easy integration of Netacea services",
homepage = "https://github.com/Netacea/lua_resty_netacea",
maintainer = "Dan Lyon",
maintainer = "Netacea Ltd.",
license = "MIT"
}
dependencies = {
Expand Down