mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
76c9c40844
Until installing deps is properly supported
32 lines
700 B
Docker
32 lines
700 B
Docker
FROM node:10 AS frontend-builder
|
|
|
|
COPY ./maubot/management/frontend /frontend
|
|
RUN cd /frontend && yarn --prod && yarn build
|
|
|
|
FROM alpine:3.8
|
|
|
|
ENV UID=1337 \
|
|
GID=1337
|
|
|
|
COPY . /opt/maubot
|
|
COPY --from=frontend-builder /frontend/build /opt/maubot/frontend
|
|
WORKDIR /opt/maubot
|
|
RUN apk add --no-cache \
|
|
py3-aiohttp \
|
|
py3-sqlalchemy \
|
|
py3-attrs \
|
|
py3-bcrypt \
|
|
py3-cffi \
|
|
build-base \
|
|
python3-dev \
|
|
ca-certificates \
|
|
su-exec \
|
|
py3-pillow \
|
|
py3-magic \
|
|
&& pip3 install -r requirements.txt feedparser
|
|
# TODO require pillow, magic and feedparser when maubot supports installing dependencies
|
|
|
|
VOLUME /data
|
|
|
|
CMD ["/opt/maubot/docker/run.sh"]
|