1
0

server.Dockerfile 397 B

12345678910111213141516171819202122232425
  1. ARG UBUNTU_VERSION=22.04
  2. FROM ubuntu:$UBUNTU_VERSION as build
  3. RUN apt-get update && \
  4. apt-get install -y build-essential git libcurl4-openssl-dev
  5. WORKDIR /app
  6. COPY . .
  7. ENV LLAMA_CURL=1
  8. RUN make
  9. FROM ubuntu:$UBUNTU_VERSION as runtime
  10. RUN apt-get update && \
  11. apt-get install -y libcurl4-openssl-dev
  12. COPY --from=build /app/server /server
  13. ENV LC_ALL=C.utf8
  14. ENTRYPOINT [ "/server" ]