Description:
Create a Dockerfile for 01-rwslotmachine1 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 31344.
-
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
01-rwslotmachine1exercise.Requirements:
- Compile the provided C code into an executable.
- Run the compiled executable and ensure it listens or operates on port
31344.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.