FROM python:3.10-alpine WORKDIR /app/ ENV PYTHONIOENCODING=utf-8 COPY Pipfile Pipfile.lock everybody.txt tweetbot.py /app/ # Install pipenv and compilation dependencies RUN pip install pipenv && pipenv install --deploy --ignore-pipfile # Run the application ENTRYPOINT ["pipenv", "run", "python3", "./tweetbot.py"]