Skip to content

Instantly share code, notes, and snippets.

@saikocat
Created October 27, 2020 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saikocat/f1a1dfb26f0b2cb972127a0f55f18f68 to your computer and use it in GitHub Desktop.
Save saikocat/f1a1dfb26f0b2cb972127a0f55f18f68 to your computer and use it in GitHub Desktop.
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