Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM quay.io/centos/centos:stream9 AS builder

RUN --mount=type=cache,target=/var/cache/yum \
yum upgrade -y && \
yum install -y -q gcc g++ cmake make git wget boost-devel zlib-devel curl-devel
FROM almalinux:9 AS builder

RUN dnf clean all && \
dnf update -y && \
dnf install -y -q gcc gcc-c++ cmake make git wget boost-devel zlib-devel libcurl-devel

WORKDIR /build
COPY . .
Expand All @@ -13,13 +12,12 @@ RUN git submodule update --init --recursive || true
RUN cmake -B build/ && \
cmake --build build/ -j

FROM quay.io/centos/centos:stream9
FROM almalinux:9

RUN --mount=type=cache,target=/var/cache/yum \
yum upgrade -y && \
yum install -y -q yum-utils && \
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
yum install -y -q docker-ce-cli
RUN dnf update -y && \
dnf install -y -q dnf-plugins-core && \
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
dnf install -y -q docker-ce-cli

WORKDIR /app

Expand All @@ -28,5 +26,4 @@ COPY --from=builder /build/accomodation/etc/watchman_cpp_config.json /app/

EXPOSE 8000

CMD ["./watchman_cpp"]

CMD ["./watchman_cpp"]
Loading