Skip to content

Instantly share code, notes, and snippets.

@denzuko
Last active July 4, 2022 19:28
Show Gist options
  • Save denzuko/2c30f86b98b0ab7caf85110ebce81bd8 to your computer and use it in GitHub Desktop.
Save denzuko/2c30f86b98b0ab7caf85110ebce81bd8 to your computer and use it in GitHub Desktop.
Docker image release for newsraft
FROM python:latest as build
COPY . /src
WORKDIR /src
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y libncurses5-dev libncursesw5-dev libsqlite3-dev libcurl-dev libexpat-dev libyajl-dev libgumbo-dev scdoc meson ninja-build
meson setup builddir && \
meson compile -C builddir
FROM scratch
COPY --from=build /src/builddir/* /
COPY --from=build /bin/true /entrypoint
ENTRYPOINT entrypoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment