-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile.debian
45 lines (38 loc) · 1.02 KB
/
Containerfile.debian
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
41
42
43
44
45
FROM debian:stable
# FROM debian:slim-bullseye to save some bytes
# Update the package repository and install necessary dependencies
RUN apt-get update && apt-get install -y \
build-essential \
wget \
git \
curl \
zlib1g-dev \
libpcre3-dev \
libpcre2-dev \
libssl-dev \
llvm-dev \
libclang-dev \
clang \
automake \
autoconf \
libtool \
vim
# Download Nginx source code
WORKDIR /nginx
ENV NGINX_VER=1.23.3
RUN git config --global http.sslVerify false
RUN wget --no-check-certificate https://nginx.org/download/nginx-${NGINX_VER}.tar.gz
RUN tar -xzvf nginx-${NGINX_VER}.tar.gz
RUN rm nginx-${NGINX_VER}.tar.gz
# Configure and compile Nginx with dynamic module support
WORKDIR /nginx/nginx-${NGINX_VER}
RUN ./configure --with-compat
RUN make
RUN make install
RUN cp objs/nginx /usr/sbin/nginx
# default dynamic modules directory
RUN mkdir /usr/local/nginx/modules
EXPOSE 80
# Start Nginx
# Define the ENTRYPOINT as the NGINX executable
ENTRYPOINT ["nginx", "-g", "daemon off;"]