2020-05-15 12:36:00 +03:00
|
|
|
# Application Runtime image
|
|
|
|
# Contains the cchost binary and its runtime dependencies
|
|
|
|
|
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
2020-06-25 16:46:31 +03:00
|
|
|
ARG extra_vars
|
|
|
|
|
2020-05-15 12:36:00 +03:00
|
|
|
RUN echo "APT::Acquire::Retries \"5\";" | tee /etc/apt/apt.conf.d/80-retries
|
|
|
|
|
|
|
|
# Work-around for https://github.com/intel/linux-sgx/issues/395
|
|
|
|
RUN mkdir -p /etc/init
|
|
|
|
|
|
|
|
COPY getting_started/setup_vm/ /setup_vm/
|
|
|
|
RUN apt update \
|
|
|
|
&& apt install -y ansible software-properties-common bsdmainutils dnsutils \
|
|
|
|
&& cd setup_vm \
|
2020-06-25 16:46:31 +03:00
|
|
|
&& ansible-playbook app-run.yml $extra_vars \
|
2020-05-15 12:36:00 +03:00
|
|
|
&& rm -rf /tmp/* \
|
|
|
|
&& apt remove -y ansible software-properties-common \
|
|
|
|
&& apt -y autoremove \
|
|
|
|
&& apt -y clean
|