Created
October 27, 2020 14:34
-
-
Save saikocat/f1a1dfb26f0b2cb972127a0f55f18f68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster-slim AS builder | |
ARG XAR_VERSION=19.4.22 | |
WORKDIR /src | |
RUN set -ex; \ | |
apt-get update; \ | |
apt-get install -y g++ curl cmake squashfs-tools; \ | |
curl -L https://github.com/facebookincubator/xar/archive/${XAR_VERSION}.tar.gz | tar -zxv --strip-components=1 --directory .; \ | |
cmake .; make; make install | |
FROM python:3.8-slim-buster AS runtime | |
ARG XAR_VERSION=19.4.22 | |
RUN pip install wheel xar==${XAR_VERSION} \ | |
&& rm -rf ~/.cache/pip/* \ | |
&& apt-get update \ | |
&& apt-get install -y squashfuse \ | |
&& rm -rf /var/lib/apt/lists/* | |
COPY --from=builder /usr/local/bin /usr/local/bin | |
ENTRYPOINT ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment