test
This commit is contained in:
@@ -44,7 +44,8 @@ WORKDIR /app
|
||||
RUN groupadd -g 903 spj && \
|
||||
useradd -u 900 -g spj -m -s /bin/bash server && \
|
||||
groupadd -r oj && \
|
||||
useradd -r -g oj -d /app oj
|
||||
useradd -r -g oj -d /app oj && \
|
||||
mkdir -p /data/log /data/config /data/ssl /data/test_case /data/public/upload /data/public/avatar /data/public/website
|
||||
|
||||
RUN --mount=type=cache,target=/var/cache/apt,id=apt-cache-$TARGETARCH$TARGETVARIANT-final \
|
||||
<<EOS
|
||||
@@ -68,10 +69,10 @@ COPY --from=builder /usr/local/lib/python3.12/site-packages/ /usr/local/lib/pyth
|
||||
COPY ./ /app/
|
||||
|
||||
# 设置目录权限
|
||||
RUN mkdir -p /app/dist/ /data && \
|
||||
chown -R oj:oj /app && \
|
||||
RUN chown -R oj:oj /app && \
|
||||
chown -R server:spj /data && \
|
||||
chmod -R u=rwX,go=rX /app && \
|
||||
chmod -R 750 /data && \
|
||||
chmod +x /app/deploy/entrypoint.sh
|
||||
|
||||
HEALTHCHECK --interval=5s CMD [ "/usr/local/bin/python3", "/app/deploy/health_check.py" ]
|
||||
|
||||
Reference in New Issue
Block a user