Skip to content

chapters/mitigations-and-defensive-strategies: Add Dockerfile for 04-rwslotmachine4 #46

@gabrielmocanu

Description

@gabrielmocanu

Description:

Create a Dockerfile for 04-rwslotmachine4 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 31347.
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions