n8n_node_librebooking/Dockerfile

42 lines
928 B
Docker

# Dockerfile für n8n mit LibreBooking Node
# Basiert auf dem offiziellen n8n Docker Image
FROM n8nio/n8n:latest
# Als Root-Benutzer für Installation
USER root
# Arbeitsverzeichnis für den Custom Node
WORKDIR /home/node/.n8n/custom
# Kopiere Node-Dateien
COPY package*.json ./
COPY tsconfig.json ./
COPY index.ts ./
COPY credentials/ ./credentials/
COPY nodes/ ./nodes/
# Installiere Dependencies und baue den Node
RUN npm install && \
npm run build && \
chown -R node:node /home/node/.n8n
# Zurück zum node-Benutzer
USER node
# Arbeitsverzeichnis auf n8n Standard setzen
WORKDIR /home/node
# n8n wird automatisch den Custom Node laden
ENV N8N_CUSTOM_EXTENSIONS="/home/node/.n8n/custom"
# Healthcheck
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget -q --spider http://localhost:5678/healthz || exit 1
# Standard n8n Port
EXPOSE 5678
# Startbefehl
CMD ["n8n", "start"]