Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapters/mitigations-and-defensive-strategies: Add Dockerfile for 03-rwslotmachine3 #50

Open
gabrielmocanu opened this issue Nov 16, 2024 · 0 comments

Comments

@gabrielmocanu
Copy link
Collaborator

Description:

Create a Dockerfile for 03-rwslotmachine3 exercise.

Requirements:

  1. 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.
  1. Verify the functionality of the solution to ensure that it works as expected after building and running the Dockerfile.

  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant