mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
feat: add old Dockerfile logic in Dockerfile.dev
This commit is contained in:
parent
a247e8af67
commit
6ab925b7e0
3 changed files with 17 additions and 3 deletions
14
Dockerfile.dev
Normal file
14
Dockerfile.dev
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
ARG GO_VERSION=1.20
|
||||||
|
ARG DEBIAN_VERSION=11
|
||||||
|
ARG BUILD_TYPE=
|
||||||
|
|
||||||
|
FROM golang:$GO_VERSION as builder
|
||||||
|
WORKDIR /build
|
||||||
|
RUN apt-get update && apt-get install -y cmake
|
||||||
|
COPY . .
|
||||||
|
RUN make build
|
||||||
|
|
||||||
|
FROM debian:$DEBIAN_VERSION
|
||||||
|
COPY --from=builder /build/local-ai /usr/bin/local-ai
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT [ "/usr/bin/local-ai" ]
|
|
@ -5,11 +5,11 @@ services:
|
||||||
image: quay.io/go-skynet/local-ai:latest
|
image: quay.io/go-skynet/local-ai:latest
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./models:/models:cached
|
- ./models:/models:cached
|
||||||
command: ["/usr/bin/local-ai" ]
|
command: ["/usr/bin/local-ai" ]
|
||||||
|
|
|
@ -5,7 +5,7 @@ services:
|
||||||
image: quay.io/go-skynet/local-ai:latest
|
image: quay.io/go-skynet/local-ai:latest
|
||||||
build:
|
build:
|
||||||
context: ../../
|
context: ../../
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue