mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 07:36:37 +08:00
压缩历史至 95081aff
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user