forked from Hiromi-nee/instagram-scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (17 loc) · 945 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.8.3-alpine as building
RUN apk add --update --no-cache py3-numpy jpeg-dev zlib-dev gcc musl-dev
ENV PYTHONPATH=/usr/lib/python3.8/site-packages
WORKDIR /instagram-scraper
COPY setup.py /instagram-scraper/setup.py
COPY instagram_scraper /instagram-scraper/instagram_scraper
RUN python /instagram-scraper/setup.py install && rm -rf instagram_scraper.egg-info
FROM python:3.8.3-alpine
RUN mkdir -p /instagram-scraper
COPY docker_entrypoint.sh /instagram-scraper/docker_entrypoint.sh
WORKDIR /instagram-scraper
ENTRYPOINT ["/instagram-scraper/docker_entrypoint.sh"]
COPY --from=building /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
COPY --from=building /usr/local/bin/instagram-scraper /usr/local/bin/instagram-scraper
LABEL "Maintainer"="Alexander Nikolaev <[email protected]>" \
"Project page"="https://github.com/arc298/instagram-scraper" \
"Donations"="https://ko-fi.com/alexnik"