mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix: Use the same entrypoint for custom docker images as for the other images (no-changelog) (#4849)
* ci: Use the same entrypoint for custom docker images as for the other images * update docker-compose examples to use the correct volume paths to work with custom images
This commit is contained in:
parent
fbb8611ae2
commit
6d5ea0634c
|
@ -36,7 +36,7 @@ services:
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- n8n_storage:/home/node/
|
- n8n_storage:/home/node/.n8n
|
||||||
command: n8n start --tunnel
|
command: n8n start --tunnel
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
|
|
|
@ -41,7 +41,7 @@ services:
|
||||||
links:
|
links:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- n8n_storage:/home/node/
|
- n8n_storage:/home/node/.n8n
|
||||||
command: /bin/sh -c "n8n start --tunnel"
|
command: /bin/sh -c "n8n start --tunnel"
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
|
|
|
@ -24,7 +24,7 @@ x-shared: &shared
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
volumes:
|
volumes:
|
||||||
- n8n_storage:/home/node/
|
- n8n_storage:/home/node/.n8n
|
||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
|
@ -22,11 +22,11 @@ RUN rm -rf patches .npmrc *.yaml node_modules/.cache packages/**/node_modules/.c
|
||||||
# 2. Start with a new clean image with just the code that is needed to run n8n
|
# 2. Start with a new clean image with just the code that is needed to run n8n
|
||||||
FROM n8nio/base:${NODE_VERSION}
|
FROM n8nio/base:${NODE_VERSION}
|
||||||
COPY --from=builder /home/node ./
|
COPY --from=builder /home/node ./
|
||||||
COPY docker/images/n8n-custom/docker-entrypoint.sh ./
|
COPY docker/images/n8n-custom/docker-entrypoint.sh /
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
mkdir .n8n && \
|
mkdir .n8n && \
|
||||||
chown node:node .n8n
|
chown node:node .n8n
|
||||||
USER node
|
USER node
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENTRYPOINT ["tini", "--", "./docker-entrypoint.sh"]
|
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in a new issue