# ask-the-community

Frank Shen

01/17/2023, 7:39 PM
Hello Flyte team, I am trying to build a Flyte container with both k8s_spark and my custom python packages. I started the Dockerfile from this according to your suggestions (thanks!) However, this container requires changing the root user like this. This causes permission issues for other flyte tasks that access AWS etc. that are setup for the default user only.
Copy code
ARG spark_uid=1001

# Set /root user and group
RUN chown -R ${spark_uid}:${spark_uid} /root

USER ${spark_uid}