FROM public.ecr.aws/ubuntu/ubuntu:bionic
ARG version=""

COPY assets /opt
RUN apt-get -q update && \
  apt-get -y install \
    apt-mirror \
    ubuntu-advantage-tools

VOLUME /mnt/aptmirror
ENTRYPOINT ["/opt/update_mirror.sh"]
