FROM docker.io/debian:stable-slim
# Non-interactive mode
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Basic OS support
RUN apt update && apt install -y apt-utils wget gnupg gnupg2 curl python3-pip
# Create working directory
RUN mkdir -p /manifest
WORKDIR /manifest
# Copy script contents
COPY ./__init__.py /manifest/
COPY ./__init__.py /manifest/
# Get script dependencies
RUN python3 -m pip install -r requirements.txt
# -- TODO: Run tests and kill container if failure --
# Expose port for manifest app
EXPOSE 2916
# Start manifest app
ENTRYPOINT ["python3", "__init__.py"]