Description:
Create a Dockerfile for 08-challenge-shellcode-after exercise.
Requirements:
- Use a multi-stage Dockerfile:
- Build Stage:
- Compile the provided C code into an executable.
- Runtime Stage:
- Run the compiled executable and ensure it listens or operates on port 31346.
-
Verify the functionality of the solution to ensure that it works as expected after building and running the Dockerfile.
-
Ensure the Dockerfile is optimized and avoids unnecessary layers.
Expected Outcome:
A fully working Dockerfile that can be built and executed in two separate stages, satisfying the above requirements.
Description:
Create a Dockerfile for
08-challenge-shellcode-afterexercise.Requirements:
- Compile the provided C code into an executable.
- Run the compiled executable and ensure it listens or operates on port
31346.Verify the functionality of the solution to ensure that it works as expected after building and running the Dockerfile.
Ensure the Dockerfile is optimized and avoids unnecessary layers.
Expected Outcome:
A fully working Dockerfile that can be built and executed in two separate stages, satisfying the above requirements.