mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2025-04-19 14:13:24 +00:00
Update Dockerfile
This commit is contained in:
parent
4f1f5db75b
commit
8fe292ebd0
@ -5,6 +5,14 @@ RUN go get -d -v ./
|
|||||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ENV TZ Asia/Shanghai
|
||||||
|
RUN apk add --no-cache tzdata \
|
||||||
|
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
|
||||||
|
&& echo $TZ > /etc/timezone \
|
||||||
|
|
||||||
|
EXPOSE 1188
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
||||||
CMD ["/app/deeplx"]
|
CMD ["/app/deeplx"]
|
||||||
|
Loading…
Reference in New Issue
Block a user