FROM alpine:3.15

# install requirements
RUN apk update && \
	apk add --update python3 bash && \
	python3 -m ensurepip && \
	python3 -m pip install --no-cache-dir --upgrade pip && \
	python3 -m pip install --no-cache-dir Jinja2==3.0.3 MarkupSafe==2.0.1 Werkzeug==2.0.3 certifi==2021.10.8 \
		charset-normalizer==2.0.12 click==8.0.3 flask==2.0.3 idna==3.3 itsdangerous==2.0.1 requests==2.27.1 urllib3==1.26.8

COPY ./com402_hw10_ex1.py ./config.cfg /root/

RUN mkdir /root/solutions
COPY ./solution.txt /root/solutions

WORKDIR /root/
ENTRYPOINT ["/root/com402_hw10_ex1.py"]