Last active
July 4, 2022 19:28
-
-
Save denzuko/2c30f86b98b0ab7caf85110ebce81bd8 to your computer and use it in GitHub Desktop.
Docker image release for newsraft
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 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