Using RPi.GPIO Library in AppDaemon 4

Hello,
I´m new to HA and AppDaemon so I´m a bit lost. I´m using a raspberry pi 4 with home assistant installed in a docker. I´m trying to implement a python script using AppDaemon. This script is based in the raspberry pi GPIO. the problem is that i´m unable to start the script cause AppDaemon detect a problem in th RPi.GPIO library telling me I´m not using a Raspberry. Anyone knows how I can solve this?
Config:

system_packages:
  - python3
  - python3-dev
  - gcc
  - make
  - musl
  - musl-dev
  - libc-dev
python_packages:
  - spidev
  - mfrc522
  - RPi.GPIO
  - numpy
  - requests
  - pyyaml
  - influxdb
  - paho-mqtt
init_commands: []
log_level: info

Error Logs:

2020-12-17 12:32:27.831222 WARNING Error: ------------------------------------------------------------

RuntimeError: This module can only be run on a Raspberry Pi!
    from RPi._GPIO import *
  File "/usr/lib/python3.8/site-packages/RPi/GPIO/__init__.py", line 23, in 
    import RPi.GPIO as GPIO
  File "/config/appdaemon/apps/rfid_reader.py", line 2, in 
  File "", line 219, in _call_with_frames_removed
  File "", line 783, in exec_module
  File "", line 671, in _load_unlocked
  File "", line 975, in _find_and_load_unlocked
  File "", line 991, in _find_and_load
  File "", line 1014, in _gcd_import
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    self.modules[module_name] = importlib.import_module(module_name)
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 668, in read_app
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    response = future.result()
  File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 290, in run_in_executor
    await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 875, in check_app_updates
2020-12-17 12:32:27.830250 WARNING Error: Traceback (most recent call last):
2020-12-17 12:32:27.823983 WARNING Error: ------------------------------------------------------------
2020-12-17 12:32:27.823049 WARNING Error: Unexpected error loading module: /config/appdaemon/apps/rfid_reader.py:
2020-12-17 12:32:27.822024 WARNING Error: ------------------------------------------------------------

AppDaemon Logs:

020-12-17 12:32:28.075011 INFO AppDaemon: App initialization complete
2020-12-17 12:32:28.065649 INFO hello_world: You are now ready to run Apps!
2020-12-17 12:32:28.063323 INFO hello_world: Hello from AppDaemon
2020-12-17 12:32:27.852409 INFO AppDaemon: Initializing app flash_light using class FlashLight from module flash
2020-12-17 12:32:27.848601 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2020-12-17 12:32:27.844871 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/flash.py
2020-12-17 12:32:27.840610 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2020-12-17 12:32:27.833990 WARNING AppDaemon: rfid_reader
2020-12-17 12:32:27.833062 WARNING AppDaemon: Removing associated apps:
2020-12-17 12:32:27.832172 WARNING AppDaemon: Unexpected error loading module: /config/appdaemon/apps/rfid_reader.py:
2020-12-17 12:32:27.801735 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/rfid_reader.py
2020-12-17 12:32:27.792813 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2020-12-17 12:32:27.719354 INFO AppDaemon: Scheduler running in realtime
2020-12-17 12:32:25.784995 INFO AppDaemon: Got initial state from namespace default
2020-12-17 12:32:25.763509 INFO HASS: All startup conditions met
2020-12-17 12:32:25.762781 INFO HASS: Startup condition met: hass state=RUNNING
2020-12-17 12:32:25.744306 INFO HASS: Evaluating startup conditions
2020-12-17 12:32:25.693061 INFO AppDaemon: Running on port 5050
2020-12-17 12:32:25.690508 INFO AppDaemon: Starting Apps with 3 workers and 3 pins
2020-12-17 12:32:25.689520 INFO AppDaemon: Found 3 total apps
2020-12-17 12:32:25.687946 INFO AppDaemon: App 'flash_light' added
2020-12-17 12:32:25.687235 INFO AppDaemon: App 'rfid_reader' added
2020-12-17 12:32:25.686379 INFO AppDaemon: App 'hello_world' added
2020-12-17 12:32:25.660324 INFO HASS: Connected to Home Assistant 2020.12.0
2020-12-17 12:32:25.624567 INFO AppDaemon: Starting Dashboards
2020-12-17 12:32:25.623580 INFO AppDaemon: Starting Admin Interface
2020-12-17 12:32:25.615057 INFO AppDaemon: Starting API
2020-12-17 12:32:25.608231 INFO AppDaemon: Using 'ws' for event stream
2020-12-17 12:32:25.607256 INFO AppDaemon: Initializing HTTP
2020-12-17 12:32:25.606075 INFO HASS: HASS Plugin initialization complete
2020-12-17 12:32:25.605469 INFO HASS: HASS Plugin Initializing
2020-12-17 12:32:25.522767 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2020-12-17 12:32:25.481309 INFO AppDaemon: Added log: FlashLight
2020-12-17 12:32:25.480888 INFO AppDaemon: Added log: Recticlog
2020-12-17 12:32:25.480459 INFO AppDaemon: Added log: Diag
2020-12-17 12:32:25.480030 INFO AppDaemon: Added log: Access
2020-12-17 12:32:25.479537 INFO AppDaemon: Added log: Error
2020-12-17 12:32:25.479073 INFO AppDaemon: Added log: AppDaemon
2020-12-17 12:32:25.478644 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-12-17 12:32:25.478203 INFO AppDaemon: Python version is 3.8.5
2020-12-17 12:32:25.477666 INFO AppDaemon: AppDaemon Version 4.0.5 starting

Yes, I have exactly the same problem. Did you ever find a solution? It’s the one thing standing in my way to using 433MHz pirs in Home Assistant on the RPI4

I have exactly the same problem with my Pi4!

This is exactly what I see:

Is there a solution to this problem?