feat(docker): Test script using docker

- README updated with docker instructions
This commit is contained in:
Pratik Tripathy
2024-12-17 22:38:34 +05:30
parent 40deeaac17
commit 1b1ab6379d
2 changed files with 273 additions and 196 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use Debian Slim as base image
FROM debian:stable-slim
# Install necessary dependencies
RUN apt-get update && apt-get install -y \
sudo \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /script
# Copy the initialization script
COPY init-linux-harden.sh /script/
# Make the script executable
RUN chmod +x /script/init-linux-harden.sh
# Set entrypoint to run the script
ENTRYPOINT ["/bin/sh", "-c"]
# Default command to run the script
CMD ["/script/init-linux-harden.sh"]