Running Tkinter on docker container
Looks like package tk
is missing, hope this solves your problem. Install tk
package for alpine
from your Dockerfile. Modify your dockerfile to install it like below,
FROM python:alpine3.8 COPY . /appWORKDIR /appRUN apk update && apk add tkRUN pip3 install -r requirements.txt ENTRYPOINT [ "python3" ] CMD [ "gui.py" ]
If still there are any missing packages just add them using RUN apk add <package1> <package2>