Compare commits

...

2 commits

Author SHA1 Message Date
iMax
2e2ec0885c Merge branch 'main' of git.leizour.fr:CyberFlingues/arp-spoofing into main 2025-01-21 08:30:02 +01:00
iMax
19da13310d Modification dockerfile 2025-01-21 08:29:32 +01:00
4 changed files with 14 additions and 12 deletions

View file

@ -1,11 +1,13 @@
services:
webserver:
dockerfile: docker/apache2/dockerfile
build: .
ports:
- "5000:5000"
volumes:
- .:/code
attacker:
dockerfile: docker/attacker/dockerfile
build: .
ports:
- "5001:5001"

View file

@ -0,0 +1,8 @@
FROM ubuntu:lastest AS webserver
RUN apt-get update && apt-get install -y apache2
WORKDIR /var/www/html
COPY ./public/ .
CMD ["apache2ctl", "-D", "FOREGROUND"]

View file

@ -0,0 +1,4 @@
FROM alpine:latest AS attacker
RUN apk add --no-cache curl
CMD ["curl", "webserver:80"]

View file

@ -1,12 +0,0 @@
FROM ubuntu:lastest AS webserver
RUN apt-get update && apt-get install -y apache2
WORKDIR /var/www/html
COPY ./public/ .
CMD ["apache2ctl", "-D", "FOREGROUND"]
FROM alpine:latest AS attacker
RUN apk add --no-cache curl
CMD ["curl", "webserver:80"]