add alembic
This commit is contained in:
parent
027dbca413
commit
99ded381fb
11
Dockerfile
11
Dockerfile
@ -1,5 +1,7 @@
|
|||||||
FROM alpine:3.8 as builder
|
FROM alpine:3.8 as builder
|
||||||
|
|
||||||
|
ENV VERSION=v0.4.0
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
gcc \
|
gcc \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
@ -28,16 +30,21 @@ RUN apk --no-cache add \
|
|||||||
py3-numpy \
|
py3-numpy \
|
||||||
py3-psycopg2
|
py3-psycopg2
|
||||||
|
|
||||||
RUN pip3 install --upgrade \
|
RUN mkdir /tmp/mautrix-telegram
|
||||||
https://github.com/tulir/mautrix-telegram/tarball/master#egg=mautrix_telegram[all]
|
RUN wget -qO- https://github.com/tulir/mautrix-telegram/archive/$VERSION.tar.gz | tar -xz --strip 1 -C /tmp/mautrix-telegram
|
||||||
|
RUN cd /tmp/mautrix-telegram && pip3 install -r requirements.txt -r optional-requirements.txt
|
||||||
|
|
||||||
FROM thallian/confd-env:latest
|
FROM thallian/confd-env:latest
|
||||||
|
|
||||||
|
ENV FFMPEG_BINARY=/usr/bin/ffmpeg
|
||||||
|
|
||||||
RUN addgroup -g 2222 matrix-bridge
|
RUN addgroup -g 2222 matrix-bridge
|
||||||
RUN adduser -h /var/lib/matrix-bridge -u 2222 -D -G matrix-bridge matrix-bridge
|
RUN adduser -h /var/lib/matrix-bridge -u 2222 -D -G matrix-bridge matrix-bridge
|
||||||
|
|
||||||
COPY --from=builder /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages
|
COPY --from=builder /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages
|
||||||
COPY --from=builder /usr/bin/alembic /usr/bin/alembic
|
COPY --from=builder /usr/bin/alembic /usr/bin/alembic
|
||||||
|
COPY --from=builder /tmp/mautrix-telegram/alembic /var/lib/matrix-bridge/alembic
|
||||||
|
COPY --from=builder /tmp/mautrix-telegram/alembic.ini /var/lib/matrix-bridge/alembic.ini
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
Loading…
Reference in New Issue
Block a user