Skip to content

Commit

Permalink
Merge pull request #68 from taosdata/member/yqli
Browse files Browse the repository at this point in the history
add the cloud image files
  • Loading branch information
sheyanjie-qq authored Nov 10, 2023
2 parents 3f1d504 + 49501ae commit 2b14a89
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions DockerfileCloud
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.18.6-alpine as builder
LABEL maintainer = "TDengine"

ARG latestv
ARG gitinfo
ARG buildinfo

RUN apk --no-cache add upx && \
rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/taoskeeper
COPY ./ /usr/src/taoskeeper/
ENV GO111MODULE=on \
GOPROXY=https://goproxy.cn,direct

RUN echo "$latestv $gitinfo $buildinfo"
RUN go mod tidy && go build -ldflags="-s -w -X 'github.com/taosdata/taoskeeper/version.Version=${latestv}' -X 'github.com/taosdata/taoskeeper/version.Gitinfo=${gitinfo}' -X 'github.com/taosdata/taoskeeper/version.BuildInfo=${buildinfo}'" -o taoskeeper . && upx -9 taoskeeper
FROM alpine:3
RUN mkdir -p /etc/taos
COPY --from=builder /usr/src/taoskeeper/taoskeeper /usr/bin/
COPY ./config/taoskeeper.toml /etc/taos/taoskeeper.toml
RUN chmod u+rw /etc/taos/taoskeeper.toml
EXPOSE 6043
CMD ["taoskeeper"]

0 comments on commit 2b14a89

Please sign in to comment.