19 lines
489 B
Docker
19 lines
489 B
Docker
# Base image
|
|
FROM ubuntu:latest
|
|
|
|
# Maintainer information
|
|
LABEL maintainer="Maksim Stojkovic <https://github.com/maksimstojkovic>" \
|
|
org.label-schema.vcs-url="https://github.com/maksimstojkovic/docker-letsencrypt"
|
|
|
|
# Install tools required
|
|
RUN apt update
|
|
RUN apt upgrade -y
|
|
RUN apt install bash certbot curl python3-certbot-nginx -y jq
|
|
|
|
# Copy scripts
|
|
WORKDIR /scripts
|
|
COPY ./scripts /scripts
|
|
RUN chmod -R +x /scripts
|
|
|
|
# Image starting command
|
|
CMD ["/bin/bash", "/scripts/start.sh"]
|