Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0475834

Browse files
author
Hubert Dryja
committed
added docker-compose, switched from ubuntu to alpine, entrypoint working
1 parent 84ee146 commit 0475834

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

‎docker/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
FROM ubuntu:latest
1+
FROM python:2.7-alpine
22

3-
RUN apt-get update && apt-get install -y python python-pip git mongodb
3+
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories
4+
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories
5+
RUN apk update && apk add mongodb git
46

57
RUN git clone https://github.com/codingo/NoSQLMap.git /root/NoSqlMap
68

@@ -9,7 +11,6 @@ WORKDIR /root/NoSqlMap
911
RUN python setup.py install
1012

1113
COPY entrypoint.sh /tmp/entrypoint.sh
12-
1314
RUN chmod +x /tmp/entrypoint.sh
1415

1516
ENTRYPOINT ["/tmp/entrypoint.sh"]

‎docker/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: "3"
2+
services:
3+
nosqlmap:
4+
image: nosqlmap:latest
5+
build:
6+
context: .

‎docker/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
2-
execpython nosqlmap.py
1+
#!/bin/ash
2+
python nosqlmap.py

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /