1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

fedora-minimal adaptions

Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
This commit is contained in:
Alexandra 2024-11-04 11:39:00 +00:00
parent 1496b078e9
commit adf11ccd6a

View file

@ -26,9 +26,15 @@ RUN dnf -y install \
fmt-devel \
libwebsockets-devel
# For WebSocket / API access
EXPOSE 80
EXPOSE 443
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
WORKDIR /villas
FROM dev AS builder
ARG CMAKE_OPTS
@ -37,21 +43,18 @@ COPY . /villas/
RUN rm -rf /villas/build && mkdir /villas/build
WORKDIR /villas/build
RUN cmake ${CMAKE_OPTS} -DCPACK_GENERATOR=RPM .. && \
make -j$(nproc) package
FROM ${DISTRO}:${FEDORA_VERSION} as app
# FROM ${DISTRO}:${FEDORA_VERSION} as app
COPY --from=builder /villas/build/*.rpm /tmp/
RUN dnf -y install /tmp/*.rpm
# COPY --from=builder /villas/build/*.rpm /tmp/
# RUN dnf -y install /tmp/*.rpm
# Test if it runs
RUN villas node -h 2&>1 > /dev/null
# # Test if it runs
# RUN villas node -h 2&>1 > /dev/null
# For WebSocket / API access
EXPOSE 80
EXPOSE 443
WORKDIR /villas
ENTRYPOINT ["villas"]