2023-09-08 01:06:52 +02:00
|
|
|
ARG BASE_IMAGE="fabiocicerchia/nginx-lua:1.25.2-alpine3.18.3"
|
2023-09-01 23:08:48 +02:00
|
|
|
|
|
|
|
FROM ${BASE_IMAGE}
|
|
|
|
|
|
|
|
# Install ping and ip
|
2023-09-08 01:06:52 +02:00
|
|
|
RUN apk add --no-cache iproute2 iputils bash
|
2023-09-01 23:08:48 +02:00
|
|
|
|
2023-09-07 23:59:00 +02:00
|
|
|
# Default nginx proxy envs
|
2023-09-08 00:00:35 +02:00
|
|
|
ENV NGINX_PROXY_SOURCE_PORT=${NGINX_PROXY_SOURCE_PORT:-"Please configure NGINX_PROXY_SOURCE_PORT env!"}
|
|
|
|
ENV NGINX_PROXY_SOURCE_ADDRESS=${NGINX_PROXY_SOURCE_ADDRESS:-"Please configure NGINX_PROXY_SOURCE_ADDRESS env!"}
|
2023-09-07 23:59:00 +02:00
|
|
|
|
|
|
|
# Copy default nginx configuration
|
2023-09-08 10:17:19 +02:00
|
|
|
#COPY default.nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
|
|
|
# Remove default nginx config
|
|
|
|
RUN rm -r /etc/nginx/nginx.conf
|
2023-09-07 23:59:00 +02:00
|
|
|
|
2023-09-01 23:14:45 +02:00
|
|
|
# Copy entrypoint
|
2023-09-01 23:10:10 +02:00
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
2023-09-01 23:16:48 +02:00
|
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
2023-09-01 23:10:10 +02:00
|
|
|
|
2023-09-01 23:14:45 +02:00
|
|
|
# Execute entrypoint
|
2023-09-01 23:08:48 +02:00
|
|
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
|
|
|
CMD [ "app" ]
|