2019-07-29 21:31:50 +00:00
|
|
|
FROM python:3.7-alpine
|
2018-05-14 02:00:22 +00:00
|
|
|
LABEL maintainer "me@jowj.net"
|
|
|
|
|
|
|
|
RUN apk update
|
|
|
|
|
|
|
|
RUN apk add \
|
|
|
|
python3 \
|
2019-05-29 02:08:02 +00:00
|
|
|
python3-dev \
|
2019-05-28 20:15:39 +00:00
|
|
|
libffi-dev
|
2018-05-14 02:00:22 +00:00
|
|
|
|
2019-05-29 02:08:02 +00:00
|
|
|
RUN apk add --no-cache curl python pkgconfig python-dev openssl-dev libffi-dev musl-dev make gcc
|
2019-05-28 20:15:01 +00:00
|
|
|
|
2019-05-29 02:08:02 +00:00
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
|
|
|
|
RUN pip3 install --upgrade setuptools
|
|
|
|
|
2019-07-29 21:31:50 +00:00
|
|
|
COPY ./ ./mojo/
|
2018-05-14 02:00:22 +00:00
|
|
|
|
2019-07-29 21:31:50 +00:00
|
|
|
RUN pip3 install requests slackclient
|
2018-05-14 02:00:22 +00:00
|
|
|
|
2019-07-29 21:31:50 +00:00
|
|
|
CMD python3 /mojo/mojo-web.py
|