Initial commit of my old Twitter bot (that still runs)
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user