mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-23 05:45:03 +00:00
4afa513dce
docker-compose build && docker-compose up
13 lines
409 B
Docker
13 lines
409 B
Docker
FROM alpine
|
|
RUN apk add nginx
|
|
RUN mkdir -p /run/nginx
|
|
ADD default.conf /etc/nginx/http.d/default.conf
|
|
ADD *.key /etc/ssl/private/
|
|
ADD *.crt /etc/ssl/certs/
|
|
WORKDIR /var/www/localhost/htdocs
|
|
COPY entrypoint.sh /usr/local/bin
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
ENTRYPOINT ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
|
|
#EXPOSE 80
|
|
EXPOSE 443
|
|
CMD ["/bin/sh", "-c", "nginx -g 'daemon off;'; nginx -s reload;"]
|