13 lines
551 B
Plaintext
13 lines
551 B
Plaintext
FROM alpine:edge
|
|
MAINTAINER Ryan Rix <ryan@whatthefuck.computer>
|
|
|
|
COPY ./requirements.txt /requirements.txt
|
|
RUN SYNAPSE_VERSION="0.16.1" && BUILD_PKGS="py-pip python-dev openssl-dev gcc make musl-dev git" \
|
|
&& apk upgrade --no-cache && apk add --no-cache python openssl py-setuptools py-cffi py-pillow $BUILD_PKGS
|
|
RUN pip install -r /requirements.txt
|
|
RUN apk del --rdepends $BUILD_PKGS \
|
|
&& rm -rf /root/.cache
|
|
VOLUME ["/data"]
|
|
COPY ./twitbot.py /twitbot.py
|
|
CMD ["python", "/twitbot.py", "--config_path", "/data/bots.yaml", "--data_path", "/data"]
|