mirror of
https://github.com/maubot/maubot
synced 2025-09-03 03:30:38 +00:00
- run as dedicated user instead of root - avoid running sed on a already existing config.yaml - fix typo in sed command for db line
19 lines
425 B
Docker
19 lines
425 B
Docker
FROM alpine:3.8
|
|
|
|
COPY . /opt/maubot
|
|
WORKDIR /opt/maubot
|
|
RUN apk add --no-cache \
|
|
py3-aiohttp \
|
|
py3-sqlalchemy \
|
|
py3-attrs \
|
|
py3-bcrypt \
|
|
py3-cffi \
|
|
ca-certificates &&\
|
|
pip3 install -r requirements.txt &&\
|
|
mkdir -p /data /var/log/maubot &&\
|
|
adduser -D maubot &&\
|
|
chown -R maubot: /opt/maubot /data /var/log/maubot
|
|
|
|
VOLUME /data
|
|
USER maubot
|
|
CMD ["/opt/maubot/docker-run.sh"]
|