FROM nginx:mainline-alpine COPY ./docker/default.conf /etc/nginx/conf.d/default.conf COPY ./docker/nginx.conf /etc/nginx/nginx.conf COPY ./docker/entrypoint.sh / RUN apk update --no-cache && apk upgrade --no-cache \ && apk add --no-cache openssl tzdata \ && mkdir -p /var/www/TeaWeb /etc/ssl/certs \ && chmod +x /entrypoint.sh ENV TZ="Europe/Berlin" EXPOSE 80 443 ENTRYPOINT ["/entrypoint.sh"] CMD ["nginx", "-g", "daemon off;"]