First commit
All checks were successful
WebServer Build / build-and-push-image (push) Successful in 1m40s
All checks were successful
WebServer Build / build-and-push-image (push) Successful in 1m40s
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user