Skip to content

Commit

Permalink
add oneapi 0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxuhui committed Jul 17, 2024
1 parent 5b9c1a2 commit 748edda
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
19 changes: 19 additions & 0 deletions songquanpeng/one-api/0.6.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM cr.loongnix.cn/alpine:3.11 as builder

RUN apk update \
&& apk add wget \
&& wget https://github.com/Loongson-Cloud-Community/one-api/releases/download/v0.6.7/one-api -O /one-api \
&& chmod +x /one-api


FROM cr.loongnix.cn/alpine:3.11

RUN apk update \
&& apk upgrade \
&& apk add --no-cache ca-certificates tzdata \
&& update-ca-certificates 2>/dev/null || true

COPY --from=builder /one-api /
EXPOSE 3000
WORKDIR /data
ENTRYPOINT ["/one-api"]
28 changes: 28 additions & 0 deletions songquanpeng/one-api/0.6.7/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file is generated by the template.

REGISTRY?=cr.loongnix.cn
ORGANIZATION?=songquanpeng
REPOSITORY?=one-api
TAG?=0.6.7
LATEST?=true

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

image:
docker build \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
#latest image
@if [ $(LATEST) = "true" ]; \
then \
docker tag $(IMAGE) $(LATEST_IMAGE); \
docker push $(LATEST_IMAGE); \
fi

0 comments on commit 748edda

Please sign in to comment.