maestral/Dockerfile
Sam Schott 56ac5cfed9 remove CRYPTOGRAPHY_DONT_BUILD_RUST env setting
Now that wheels are available for musl-based systems such as Alpine linux, we no longer need to build ourselves.
2022-01-13 19:30:32 +01:00

24 lines
455 B
Docker

FROM python:3.10.1-alpine3.15
ARG UID=1000
ARG VERSION
RUN set -eux ; \
adduser -D -u ${UID} -h /dropbox dropbox ; \
apk add --no-cache --virtual .build-deps \
gcc \
musl-dev \
python3-dev \
libffi-dev \
openssl-dev; \
pip install -U pip ; \
pip install maestral==${VERSION} ; \
rm -rf /root/.cache ; \
apk del --no-network .build-deps
USER dropbox
VOLUME ["/dropbox"]
WORKDIR /dropbox
CMD ["maestral", "start", "-f"]