-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
40 lines (28 loc) · 926 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Main image
FROM alpine:3.14.3
# Software versions to use
ARG NGINX_VERSION=1.21.5
ARG MODSECURITY_VERSION=3.0.6
ARG OWASP_VERSION=v3.4/dev
# Variable to specify if running on GitHub Action or localy (prevent GitHub action resource issues)
ARG RUNS_ON_GITHUB=false
LABEL maintainer="flo-mic" \
description="Secure-Proxy based on nginx with modsecurity, fail2ban, clamav and much more."
# environment variables
ENV ARCH="x86_64" \
MIRROR=http://dl-cdn.alpinelinux.org/alpine \
PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
HOME="/root" \
TERM="xterm"
#Copy Install scripts
COPY install/ /tmp/secproxy-installer/
# Install image components
RUN ./tmp/secproxy-installer/install.sh && rm -rf /tmp/*
# Copy/replace root files
COPY root/ /
# Specify mount volumes
VOLUME /config
# Expose needed ports
EXPOSE 80 443
# Entrypoint of S6 overlay
ENTRYPOINT [ "/init" ]