-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 867 Bytes
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 867 Bytes
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
FROM ubuntu:22.04 AS nginx-builder
RUN apt-get update && \
apt-get install -y build-essential libgd-dev libpcre3-dev zlib1g-dev wget
RUN wget https://nginx.org/download/nginx-1.25.1.tar.gz && \
tar -xzvf nginx-1.25.1.tar.gz && \
cd nginx-1.25.1 && \
./configure --with-http_image_filter_module && \
make && make install
FROM minio/minio:latest AS minio
FROM ubuntu:22.04
RUN apt-get update \
&& apt-get install -y supervisor libgd-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /data \
&& mkdir /var/log/nginx
COPY --from=nginx-builder /usr/local/nginx /usr/local/nginx
COPY --from=minio /usr/bin/minio /usr/local/bin/minio
COPY --from=minio /usr/bin/mc /usr/local/bin/mc
COPY nginx.conf /usr/local/nginx/conf/
COPY supervisord.conf /etc/supervisor/conf.d/
EXPOSE 80 9000 9001
CMD ["supervisord", "-n"]