Spaces:
Runtime error

n8n / Dockerfile
mnizz's picture
Create Dockerfile
df293a8 verified
Raw History Blame Contribute Delete
415 Bytes
# 基于官方 n8n 镜像
FROM n8nio/n8n:latest
# 设置 n8n 监听 Hugging Face 提供的端口
ENV N8N_HOST=0.0.0.0
ENV N8N_PORT=${PORT}
# 这里必须 EXPOSE Hugging Face 的 PORT
EXPOSE ${PORT}
USER root
RUN apk add --no-cache postgresql-client bash
USER node
WORKDIR /data
COPY docker-entrypoint.sh /docker-entrypoint.sh
# 直接用我们的脚本作为入口
ENTRYPOINT ["bash", "/docker-entrypoint.sh"]