Files
basic-webserver-docker/Dockerfile
Mike Nolan 06c33f3487
All checks were successful
WebServer Build / build-and-push-image (push) Successful in 1m40s
First commit
2026-06-14 19:22:49 -05:00

19 lines
559 B
Docker

FROM alpine:latest AS tf-build
RUN apk update
RUN apk add --no-cache cmake g++ make git
WORKDIR /src
RUN git clone --depth 1 --branch v0.0.5 https://git.tesses.org/tesses50/tessesframework.git .
RUN mkdir build && cd build && cmake -S .. -B . -DTESSESFRAMEWORK_STATIC=ON -DTESSESFRAMEWORK_ENABLE_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release && make -j`nproc`
FROM alpine:latest
RUN apk update
RUN apk add --no-cache libstdc++
COPY --from=tf-build /src/build/tfileserver /usr/local/bin/tfileserver
EXPOSE 9852
ENTRYPOINT ["/usr/local/bin/tfileserver","/www"]