File: Dockerfile

package info (click to toggle)
snac2 2.75-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,532 kB
  • sloc: ansic: 19,200; sh: 148; makefile: 62
file content (14 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 *.pem /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;"]