Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dockerize Your Projects: An example to illustrate basic Dockerization
FROM python
LABEL maintainer="Sawood Alam <@ibnesayeed>"
RUN pip install beautifulsoup4
RUN pip install requests
COPY /app/
RUN chmod a+x
#!/usr/bin/env python
import sys
import requests
from bs4 import BeautifulSoup
r = requests.get(sys.argv[-1])
data = r.text
soup = BeautifulSoup(data)
for link in soup.find_all("a"):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment