fix: copy .env if not exist

This commit is contained in:
Anonymous 2024-07-06 23:34:05 +08:00
parent f64725d085
commit 6a1cc20af7
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,5 @@
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
ADD entrypoint.sh /

View File

@ -24,6 +24,9 @@ services = [
]
os.chdir(root_dir)
if not os.path.exists(".env"):
call("cp .env.example .env")
call("docker-compose up -d --force-recreate --wait")
os.chdir(test_dir)