Files
OpenFlare/Dockerfile
T
2026-06-08 20:34:27 +08:00

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"]