Add more deps to docker image

This commit is contained in:
Tulir Asokan 2019-07-28 21:56:43 +03:00
parent 15ec4f7155
commit e82980c456

View File

@ -1,9 +1,9 @@
FROM node:10 AS frontend-builder FROM node:12 AS frontend-builder
COPY ./maubot/management/frontend /frontend COPY ./maubot/management/frontend /frontend
RUN cd /frontend && yarn --prod && yarn build RUN cd /frontend && yarn --prod && yarn build
FROM alpine:3.9 FROM alpine:edge
ENV UID=1337 \ ENV UID=1337 \
GID=1337 GID=1337
@ -11,7 +11,7 @@ ENV UID=1337 \
COPY . /opt/maubot COPY . /opt/maubot
COPY --from=frontend-builder /frontend/build /opt/maubot/frontend COPY --from=frontend-builder /frontend/build /opt/maubot/frontend
WORKDIR /opt/maubot WORKDIR /opt/maubot
RUN apk add --no-cache \ RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
py3-aiohttp \ py3-aiohttp \
py3-sqlalchemy \ py3-sqlalchemy \
py3-attrs \ py3-attrs \
@ -24,7 +24,13 @@ RUN apk add --no-cache \
py3-pillow \ py3-pillow \
py3-magic \ py3-magic \
py3-psycopg2 \ py3-psycopg2 \
&& pip3 install -r requirements.txt feedparser dateparser py3-matplotlib \
py3-ruamel.yaml \
py3-jinja2 \
py3-click \
py3-packaging \
py3-markdown \
&& pip3 install -r requirements.txt feedparser dateparser langdetect
# TODO remove pillow, magic and feedparser when maubot supports installing dependencies # TODO remove pillow, magic and feedparser when maubot supports installing dependencies
VOLUME /data VOLUME /data