File size: 561 Bytes
3ad4cbd
 
 
02a977a
92c798e
09e750d
80d2496
b190cf6
92c798e
b190cf6
92c798e
b1a9993
7ba5ddf
7baaf3e
92c798e
dee1f12
92c798e
0f80cf0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#FROM node:18 AS svrRoot
#WORKDIR /svroot
#RUN git clone https://github.com/SokWith/lxdeweb.git

# 使用官方 Jekyll 镜像作为基础镜像
FROM jitesoft/jekyll
RUN apk add git
RUN git clone https://github.com/SokWith/lxdeweb.git /srv/jekyll
# 设置工作目录
WORKDIR /srv/jekyll
# 将当前目录的内容复制到容器内的 /srv/jekyll 目录
#COPY --from=svrRoot /svroot/lxdeweb .
RUN ls /usr/local/bundle/bin -l
RUN ls /srv/jekyll -al
# 暴露容器的 4000 端口
EXPOSE 4000
# 启动 Jekyll 服务器
CMD ["/usr/local/bundle/bin/jekyll", "serve"]