mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Improve standalone dockerfile for caching
This commit is contained in:
parent
946c346481
commit
d2afc7cee4
@ -1,12 +1,6 @@
|
||||
FROM docker.io/alpine:3.11
|
||||
|
||||
COPY . /opt/maubot
|
||||
RUN cd /opt/maubot \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
python3-dev \
|
||||
libffi-dev \
|
||||
build-base \
|
||||
&& apk add --no-cache \
|
||||
RUN apk add --no-cache \
|
||||
py3-aiohttp \
|
||||
py3-sqlalchemy \
|
||||
py3-attrs \
|
||||
@ -18,6 +12,16 @@ RUN cd /opt/maubot \
|
||||
py3-ruamel.yaml \
|
||||
py3-jinja2 \
|
||||
py3-packaging \
|
||||
py3-markdown \
|
||||
&& pip3 install . \
|
||||
py3-markdown
|
||||
|
||||
COPY requirements.txt /opt/maubot/requirements.txt
|
||||
RUN cd /opt/maubot \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
python3-dev \
|
||||
libffi-dev \
|
||||
build-base \
|
||||
&& pip3 install -r requirements.txt \
|
||||
&& apk del .build-deps
|
||||
|
||||
COPY . /opt/maubot
|
||||
RUN cd /opt/maubot && pip3 install .
|
||||
|
Loading…
Reference in New Issue
Block a user