2018-09-08 17:56:45 +02:00
|
|
|
FROM nginx
|
|
|
|
|
|
|
|
MAINTAINER maintainers@vikunja.io
|
|
|
|
|
2019-06-10 22:12:58 +02:00
|
|
|
RUN apt-get update && apt-get install -y apt-utils openssl && \
|
|
|
|
mkdir -p /etc/nginx/ssl && \
|
|
|
|
openssl genrsa -out /etc/nginx/ssl/dummy.key 2048 && \
|
|
|
|
openssl req -new -key /etc/nginx/ssl/dummy.key -out /etc/nginx/ssl/dummy.csr -subj "/C=DE/L=Berlin/O=Vikunja/CN=Vikunja Snakeoil" && \
|
|
|
|
openssl x509 -req -days 3650 -in /etc/nginx/ssl/dummy.csr -signkey /etc/nginx/ssl/dummy.key -out /etc/nginx/ssl/dummy.crt
|
|
|
|
|
2018-09-17 08:02:15 +02:00
|
|
|
ADD nginx.conf /etc/nginx/nginx.conf
|
2019-06-10 22:12:58 +02:00
|
|
|
|
|
|
|
COPY dist /usr/share/nginx/html
|