-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathECSDockerfile
More file actions
36 lines (27 loc) · 1.43 KB
/
Copy pathECSDockerfile
File metadata and controls
36 lines (27 loc) · 1.43 KB
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
FROM ubuntu:noble@sha256:33ceb71981b602c1a7443a53469e4dba065f7503eab3078a2d7a57a2ab987517
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
nginx \
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/log/nginx/*.log && rm -rf /etc/nginx/nginx.conf && rm -rf /etc/nginx/sites-enabled && rm -rf /etc/nginx/includes && rm -rf /data/nginx/dist && rm -rf /data/nginx/*
RUN ln -s /dev/stderr /var/log/nginx/error.log
RUN mkdir -p /data/nginxconf
RUN mkdir -p /home/apps/nginx/app
RUN mkdir -p /usr/share/nginx/html/customerrorpage && chown -Rf www-data:www-data /usr/share/nginx/html/customerrorpage
COPY dist /data/nginxconf/dist
COPY rund /data/nginxconf/
COPY healthcheck.html /home/apps/nginx/app/healthcheck.html
RUN ln -s /data/nginxconf/dist/nginx.conf /etc/nginx/nginx.conf
RUN ln -s /data/nginxconf/dist/limits.conf /etc/nginx/limits.conf
RUN ln -s /data/nginxconf/dist/sites-enabled /etc/nginx/sites-enabled
RUN ln -s /data/nginxconf/dist/includes /etc/nginx/includes
RUN ln -s /data/nginxconf/dist/customerrorpage /usr/share/nginx/html/customerrorpage
RUN ln -s /data/nginxconf/dist/security_headers.conf /etc/nginx/security_headers.conf
RUN chown -Rf www-data:www-data /data/nginxconf/dist
WORKDIR /data/nginxconf
ARG SOURCE_COMMIT=local
LABEL app="nginx-supply" \
version="1.0" \
org.opencontainers.image.revision="${SOURCE_COMMIT}"
CMD ["./rund"]