Quentin Lhoest
commited on
Commit
·
8af52ea
1
Parent(s):
f0806e2
fix perms
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -4,6 +4,8 @@ FROM neo4j:2025.09.0-community
|
|
| 4 |
ENV NEO4J_PLUGINS='["graph-data-science"]'
|
| 5 |
RUN chmod 400 /var/lib/neo4j/conf/neo4j.conf
|
| 6 |
RUN chmod 400 /var/lib/neo4j/conf/neo4j-admin.conf
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# python
|
| 9 |
RUN apt-get update \
|
|
@@ -14,6 +16,8 @@ RUN apt-get update \
|
|
| 14 |
ADD application_neo4j /application_neo4j
|
| 15 |
RUN pip install -r /application_neo4j/requirements.txt
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
ENTRYPOINT ["/bin/bash"]
|
| 19 |
CMD ["./start.sh"]
|
|
|
|
| 4 |
ENV NEO4J_PLUGINS='["graph-data-science"]'
|
| 5 |
RUN chmod 400 /var/lib/neo4j/conf/neo4j.conf
|
| 6 |
RUN chmod 400 /var/lib/neo4j/conf/neo4j-admin.conf
|
| 7 |
+
RUN mkdir -p /backups
|
| 8 |
+
RUN chown neo4j:neo4j /backups
|
| 9 |
|
| 10 |
# python
|
| 11 |
RUN apt-get update \
|
|
|
|
| 16 |
ADD application_neo4j /application_neo4j
|
| 17 |
RUN pip install -r /application_neo4j/requirements.txt
|
| 18 |
|
| 19 |
+
# start
|
| 20 |
+
USER neo4j
|
| 21 |
+
COPY --chown=neo4j start.sh start.sh
|
| 22 |
ENTRYPOINT ["/bin/bash"]
|
| 23 |
CMD ["./start.sh"]
|