mirror of
https://github.com/NoCLin/LightMirrors
synced 2025-08-02 23:47:15 +08:00
fix: copy .env if not exist
This commit is contained in:
parent
f64725d085
commit
6a1cc20af7
@ -1,8 +1,5 @@
|
|||||||
FROM alpine:3.19.1
|
FROM alpine:3.19.1
|
||||||
|
|
||||||
# Optimization for China
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache aria2
|
RUN apk update && apk add --no-cache aria2
|
||||||
|
|
||||||
ADD entrypoint.sh /
|
ADD entrypoint.sh /
|
||||||
|
@ -24,6 +24,9 @@ services = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
os.chdir(root_dir)
|
os.chdir(root_dir)
|
||||||
|
|
||||||
|
if not os.path.exists(".env"):
|
||||||
|
call("cp .env.example .env")
|
||||||
call("docker-compose up -d --force-recreate --wait")
|
call("docker-compose up -d --force-recreate --wait")
|
||||||
|
|
||||||
os.chdir(test_dir)
|
os.chdir(test_dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user