-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evgeny Dmitriev
committed
Feb 18, 2024
1 parent
f6ab99b
commit 48751b4
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ ARG CONTAINER_VERSION | |
ARG GOMPLATE_VERISON | ||
ARG NGINX_VERSION | ||
ARG TARGETPLATFORM | ||
ARG TARGETARCH | ||
ARG WLRM_FOLDER | ||
|
||
MAINTAINER Wallarm Support Team <[email protected]> | ||
|
@@ -30,7 +31,6 @@ RUN addgroup -S wallarm && \ | |
apk update && \ | ||
apk upgrade && \ | ||
apk add curl bash socat logrotate libgcc \ | ||
gomplate=~$GOMPLATE_VERISON \ | ||
nginx=~$NGINX_VERSION \ | ||
nginx-mod-http-perl=~$NGINX_VERSION \ | ||
nginx-mod-stream=~$NGINX_VERSION \ | ||
|
@@ -44,6 +44,12 @@ RUN addgroup -S wallarm && \ | |
nginx -V && \ | ||
rm -r /var/cache/apk/* | ||
|
||
# Download gomplate | ||
RUN curl -sL https://github.com/hairyhenderson/gomplate/releases/download/v${CONTAINER_VERSION}/gomplate_linux-${TARGETARCH} \ | ||
-o /usr/local/bin/gomplate && \ | ||
chmod 755 /usr/local/bin/gomplate && \ | ||
gomplate -v | ||
|
||
# Create symlinks to redirect nginx logs to stdout and stderr | ||
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \ | ||
ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters