2022-08-26 05:22:51 +00:00
|
|
|
FROM python:3.10-alpine
|
|
|
|
|
2022-09-01 03:23:10 +00:00
|
|
|
WORKDIR /app/
|
2022-08-26 05:22:51 +00:00
|
|
|
ENV PYTHONIOENCODING=utf-8
|
|
|
|
|
2022-09-01 03:23:10 +00:00
|
|
|
COPY Pipfile Pipfile.lock everybody.txt tweetbot.py /app/
|
2022-08-26 05:22:51 +00:00
|
|
|
|
|
|
|
# Install pipenv and compilation dependencies
|
|
|
|
RUN pip install pipenv && pipenv install --deploy --ignore-pipfile
|
|
|
|
|
|
|
|
# Run the application
|
|
|
|
ENTRYPOINT ["pipenv", "run", "python3", "./tweetbot.py"]
|