mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
24 lines
489 B
Docker
24 lines
489 B
Docker
FROM alpine:3.23
|
|
|
|
# set the time zone to Beijing Time in the Eastern 8th Time Zone
|
|
ARG TZ=Asia/Shanghai
|
|
RUN apk add --no-cache tzdata && \
|
|
cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
|
echo "${TZ}" > /etc/timezone
|
|
|
|
WORKDIR /app
|
|
|
|
# set build arg for platform
|
|
ARG TARGETPLATFORM
|
|
|
|
# copy the appropriate binary based on platform
|
|
COPY credit-server-${TARGETPLATFORM#linux/} ./credit-server
|
|
|
|
# copy docs
|
|
COPY docs ./docs
|
|
|
|
EXPOSE 8000
|
|
|
|
# set entrypoint
|
|
ENTRYPOINT ["./credit-server"]
|