Skip to content

Commit c40ec96

Browse files
committed
chore(workshop): fix dockerfile and add sqlmap
1 parent 01561b6 commit c40ec96

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ WORKDIR /myapp
55
ADD Gemfile /myapp/Gemfile
66
ADD Gemfile.lock /myapp/Gemfile.lock
77
RUN bundle install
8+
RUN rails db:setup
89
ADD . /myapp
10+
CMD bundle exec rails s -p 3000 -b '0.0.0.0'
911

sqlmap/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM python:2.7.16-alpine3.9
2+
RUN apk add git
3+
RUN git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev
4+
ENTRYPOINT [ "/usr/local/bin/python", "sqlmap-dev/sqlmap.py" ]

0 commit comments

Comments
 (0)