Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add oneapi 0.6.7 #253

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)

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