summaryrefslogblamecommitdiff
path: root/Dockerfile
blob: eba0d25909f563e335686cbf881ee36cc56a97b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                         
 
                                                                               
                                               

             
 



                                
                                       
                           
 
              




                                                             
                               
FROM fedora:38 as builder

RUN dnf install -y cmake gcc-c++ make libxml2-devel physfs-devel sqlite-devel \
    lua-devel libsigc++20-devel rapidjson-devel

ADD . /source

WORKDIR /source/libs/uWebSockets
RUN make default

WORKDIR /source
RUN cmake . -DCMAKE_INSTALL_PREFIX=/app
RUN make -j$(nproc) install

FROM fedora:38
RUN dnf update -y && \
    dnf install -y libxml2 physfs sqlite lua libsigc++20 && \
    dnf clean all -q && \
    rm -rf /var/cache/dnf/*

COPY --from=builder /app/ /app/