19 lines
536 B
Docker
19 lines
536 B
Docker
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
nginx \
|
|
openssl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY conf/nginx.conf /etc/nginx/sites-available/wordpress.conf
|
|
COPY tools/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
RUN rm -f /etc/nginx/sites-enabled/default \
|
|
&& ln -s /etc/nginx/sites-available/wordpress.conf /etc/nginx/sites-enabled/wordpress.conf \
|
|
&& mkdir -p /etc/nginx/ssl \
|
|
&& chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
EXPOSE 443
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|