FROM gcc AS build WORKDIR /http_server COPY ./main.c . COPY ./libstrops.a . RUN gcc -I . -L. -static -ansi -O2 -o http_server main.c -lstrops RUN strip ./http_server FROM scratch # copy the build artifact from the build stage COPY --from=build /http_server / COPY ./www /www COPY ./internal /internal EXPOSE 8080 CMD ["/http_server"]