<reponame>ziozzang/python-flask-restful-example<gh_stars>0
FROM ubuntu
MAINTAINER <NAME> "<EMAIL>"

ENV DEBIAN_FRONTEND=noninteractive

RUN mkdir -p /opt && \
    apt-get update && \
    apt upgrade -fy && \
    apt-get install -y \
       python3-flask-restful python3-netaddr python3-requests && \
    apt-get autoremove -fy && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /opt/
COPY ./*.py /opt/

EXPOSE 5000
CMD ["/usr/bin/python3", "/opt/server.py"]
