Update Tema 5
This commit is contained in:
18
Introduccion-hacking-hack4u/tema_5_conceptos/Dockerfile
Normal file
18
Introduccion-hacking-hack4u/tema_5_conceptos/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Para ejecutar el contenedor:
|
||||
# docker run --cap-add=NET_ADMIN -p 80:80 nombre_de_la_imagen
|
||||
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Configura la variable de entorno para evitar interactividad en la instalación de paquetes
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt install -y apache2 php libapache2-mod-php ncat net-tools vim
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# Define el comando que se ejecutará al iniciar el contenedor
|
||||
# Inicia el servicio de Apache2
|
||||
# Finalmente, inicia una shell interactiva de Bash
|
||||
CMD service apache2 start && \
|
||||
/bin/bash
|
||||
Reference in New Issue
Block a user