feat: change article managment: git submodules to dynamic git clone&pull #7
|
@ -15,11 +15,13 @@ RUN npm run build
|
||||||
# For Run
|
# For Run
|
||||||
FROM node:22-slim
|
FROM node:22-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./articles ./articles
|
COPY ./key ./key
|
||||||
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* && \
|
||||||
|
mkdir -p ~/.ssh && \
|
||||||
|
ssh-keyscan -t rsa gitea.hareworks.net >> ~/.ssh/known_hosts && \
|
||||||
|
git -c core.sshCommand="ssh -i ./key -F /dev/null" clone git@gitea.hareworks.net:Hare/blog-articles.git articles
|
||||||
|
|
||||||
COPY --from=builder /app/build ./build
|
COPY --from=builder /app/build ./build
|
||||||
COPY --from=builder /app/package.json .
|
COPY --from=builder /app/package.json .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user