File tree 5 files changed +59
-2
lines changed
5 files changed +59
-2
lines changed Original file line number Diff line number Diff line change
1
+ .github
2
+ .img
3
+ doc
4
+ output
5
+ .dockerignore
6
+ .gitignore
7
+ Docker-compose.yml
8
+ Dockerfile
9
+ LICENSE
10
+ Makefile
11
+ README.md
Original file line number Diff line number Diff line change
1
+ version : ' 3.7'
2
+
3
+ services :
4
+ osintgram :
5
+ container_name : osintgram
6
+ build : .
Original file line number Diff line number Diff line change
1
+ FROM python:3.9.2-alpine3.13 as build
2
+ WORKDIR /wheels
3
+ RUN apk add --no-cache \
4
+ g++ \
5
+ gcc \
6
+ git \
7
+ libxml2 \
8
+ libxml2-dev \
9
+ libxslt-dev \
10
+ ncurses-dev \
11
+ build-base \
12
+ linux-headers
13
+ COPY requirements.txt /opt/osintgram/
14
+ RUN pip3 wheel -r /opt/osintgram/requirements.txt
15
+
16
+
17
+ FROM python:3.9.2-alpine3.13
18
+ WORKDIR /opt/osintgram
19
+ RUN adduser -D osintgram
20
+ RUN mkdir -p /opt/osintgram && chown -R osintgram:osintgram /opt/osintgram
21
+
22
+ COPY --from=build /wheels /wheels
23
+ COPY --chown=osintgram:osintgram requirements.txt /opt/osintgram/
24
+ RUN pip3 install -r requirements.txt -f /wheels \
25
+ && rm -rf /wheels \
26
+ && rm -rf /root/.cache/pip/* \
27
+ && rm requirements.txt
28
+
29
+ COPY --chown=osintgram:osintgram src/ /opt/osintgram/src
30
+ COPY --chown=osintgram:osintgram main.py /opt/osintgram/
31
+
32
+ USER osintgram
33
+
34
+ ENTRYPOINT ["sleep" , "infinity" ]
Original file line number Diff line number Diff line change
1
+ make run :
2
+
3
+ echo "[# ] Killing old docker processes"
4
+ docker-compose rm -fs
5
+
6
+ echo "[# ] Building docker containers"
7
+ docker-compose up --build -d
Original file line number Diff line number Diff line change @@ -3,5 +3,4 @@ requests-toolbelt==0.9.1
3
3
geopy >= 2.0.0
4
4
prettytable == 0.7.2
5
5
instagram-private-api == 1.6.0
6
- gnureadline >= 8.0.0 ; platform_system != "Windows"
7
- pyreadline == 2.1 ; platform_system == "Windows"
6
+ gnureadline >= 8.0.0
You can’t perform that action at this time.
0 commit comments