21 lines
		
	
	
		
			750 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			750 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# HOW TO:
 | 
						|
#
 | 
						|
# docker compose up
 | 
						|
#
 | 
						|
# it exposes the data/ and secrets/ volumes in app root
 | 
						|
#
 | 
						|
FROM openresty/openresty:alpine-fat
 | 
						|
 | 
						|
RUN apk add --no-cache git make gcc g++ musl-dev libffi-dev openssl-dev sqlite-dev libsodium libsodium-dev imagemagick-dev openssl
 | 
						|
WORKDIR /app
 | 
						|
COPY . .
 | 
						|
RUN eval "$(luarocks --lua-version=5.1 path)"
 | 
						|
# if using openresty images, make sure the image version is >= 1.25.3.2-5 or >= 1.27.1.2-2
 | 
						|
# see https://github.com/openresty/docker-openresty/issues/276#issuecomment-2950726213
 | 
						|
# otherwise, make sure your image uses luarocks >= 3.12.0
 | 
						|
# see https://github.com/luarocks/luarocks/issues/1797
 | 
						|
RUN luarocks --lua-version=5.1 build --only-deps
 | 
						|
EXPOSE 8080
 | 
						|
RUN chmod +x /app/start.sh
 | 
						|
ENTRYPOINT ["/app/start.sh", "production"]
 |