2023-03-17 09:47:06 +00:00
|
|
|
ARG UBUNTU_VERSION=22.04
|
|
|
|
|
|
|
|
FROM ubuntu:$UBUNTU_VERSION as build
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2023-05-29 04:45:50 +00:00
|
|
|
apt-get install -y build-essential git
|
2023-03-17 09:47:06 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-06-06 05:19:49 +00:00
|
|
|
RUN make -j$(nproc) main
|
2023-03-17 09:47:06 +00:00
|
|
|
|
|
|
|
FROM ubuntu:$UBUNTU_VERSION as runtime
|
|
|
|
|
2024-06-06 05:17:21 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y libgomp1
|
|
|
|
|
2023-03-17 09:47:06 +00:00
|
|
|
COPY --from=build /app/main /main
|
|
|
|
|
2023-06-08 07:58:53 +00:00
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
|
2023-04-11 19:45:44 +00:00
|
|
|
ENTRYPOINT [ "/main" ]
|