Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
friddle authored Jan 26, 2024
1 parent a5e899e commit 676b4e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ FROM golang:1.20-alpine as builder
WORKDIR src
COPY . .
RUN go mod download
RUN go build -o dist/feishu_gpt_search main.go
RUN mkdir -p /src/dist/
RUN go build -o /src/dist/feishu_gpt_search main.go

FROM alpine:latest
WORKDIR /app/
COPY --from=builder /src/dist/feishu_gpt_search /app/feishu_gpt_search
COPY --from=builder /src/dist/feishu_gpt_search /app/feishu_gpt_search
VOLUME /app/.feishu.env
VOLUME /app/.chatgpt.env
ENTRYPOINT ["/app/feishu_gpt_search"]

0 comments on commit 676b4e2

Please sign in to comment.