# Python support can be specified down to the minor or micro version # (e.g. 3.6 or 3.6.3). # OS Support also exists for jessie & stretch (slim and full). # See https://hub.docker.com/r/library/python/ for all supported Python # tags from Docker Hub. FROM python:latest # If you prefer miniconda: #FROM continuumio/miniconda3 LABEL Name=url_shorter Version=1.0.1 EXPOSE 5000 WORKDIR /app ADD . /app #RUN apt update #RUN apt upgrade -y RUN pip install pipreqs RUN pipreqs . --force RUN python3 -m pip install -r requirements.txt RUN date > builddate.txt CMD ["python3", "main.py"]