lxdeweb / Dockerfile
jokyo3's picture
Update Dockerfile
0f80cf0 verified
raw
history blame contribute delete
561 Bytes
#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"]