Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #60 from nvtienanh/update-dockerfile-default
Browse files Browse the repository at this point in the history
Change from alpine to ubuntu in Dockerfile.default
  • Loading branch information
ravenscroftj authored Aug 26, 2023
2 parents c4e57e0 + 3e37c4b commit f840ea0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Dockerfile.default
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
FROM alpine AS build
FROM ubuntu:22.04 AS build

RUN apk add --update alpine-sdk boost-dev cmake asio-dev
ENV DEBIAN_FRONTEND=noninteractive

ADD ./ /turbopilot/
# inlude kitware apt repo to allow us to grab latest cmake
RUN apt-get update && apt-get install -y ca-certificates gpg wget
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null

RUN apt-get update && apt-get install -y build-essential cmake libboost-dev libboost-thread-dev

ADD ./ /turbopilot

RUN mkdir /turbopilot/build

WORKDIR /turbopilot/build

RUN cmake -D GGML_STATIC=ON ..
RUN cmake ..
RUN make turbopilot

FROM alpine AS runtime
FROM ubuntu:22.04 AS runtime


WORKDIR /app
Expand Down

0 comments on commit f840ea0

Please sign in to comment.