mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 10:30:51 +08:00
chore: update docker-publish.yaml and Dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -16,12 +16,16 @@ WORKDIR /www
|
||||
|
||||
COPY .docker /
|
||||
|
||||
# Add build argument for cache busting
|
||||
ARG CACHEBUST=1
|
||||
ARG REPO_URL=https://github.com/cedar2025/Xboard
|
||||
RUN git config --global --add safe.directory /www && \
|
||||
echo "Cache bust: ${CACHEBUST}" && \
|
||||
git clone --depth 1 ${REPO_URL} .
|
||||
# Add build arguments
|
||||
ARG CACHEBUST
|
||||
ARG REPO_URL
|
||||
ARG BRANCH_NAME
|
||||
|
||||
RUN echo "Attempting to clone branch: ${BRANCH_NAME} from ${REPO_URL} with CACHEBUST: ${CACHEBUST}" && \
|
||||
rm -rf ./* && \
|
||||
rm -rf .git && \
|
||||
git config --global --add safe.directory /www && \
|
||||
git clone --depth 1 --branch ${BRANCH_NAME} ${REPO_URL} .
|
||||
|
||||
COPY .docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user