# Dockerfile for building an iOS project (FlappyBird) in a macOS-capable container
# Caution: Building iOS apps typically requires macOS with Xcode. This container utilizes a macOS VM image.
FROM sickcodes/docker-osx:latest
# Set working directory to user's home
WORKDIR /Users/runner/workspace/FlappyBird
# Copy source code into the container
COPY . .
# Attempt to build the iOS app using the Xcode toolchain inside the container.
# This may require additional configuration on the host (e.g., keychain access, licenses).
RUN xcodebuild -project FlappyBird.xcodeproj \
-scheme FlappyBird \
-sdk iphonesimulator \
-configuration Debug || true
# Provide an interactive shell by default for debugging
CMD ["bash"]