Skip to content

Conversation

@tomjones1977
Copy link

Fixes #181

Path updated to reflect the default folder in the nginx build.

Copy link

@TEX479 TEX479 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried it and it worked (well the "View Raw" feature seems to be broken, but idk if that's related to this PR)

@MoqiLintong
Copy link

tried it and it worked (well the "View Raw" feature seems to be broken, but idk if that's related to this PR)

As suggested in the README.md, the "View Raw" function relies on netlify. I've tried to implement this in Docker with netlify, and here is my solution.

build with netlify

FROM node:22-slim

# 安装 netlify cli
RUN npm config set registry https://registry.npmmirror.com/ \
    && npm install -g netlify-cli \
    && netlify version

# 创建工作目录
WORKDIR /usr/src/app

# 将项目文件打包进镜像
ADD . .

# 暴露应用端口
EXPOSE 8888

CMD ["netlify", "dev", "--context", "production"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker build failing because of fnichol/uhttpd

3 participants