forked from nocodb/nocodb-seed-heroku
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nocodb/nocodb:latest
# Add Git to the container and cleanup Apt temporary files
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
# Add rsync to the container and cleanup Apt temporary files
RUN apt-get update && \
apt-get install -y rsync && \
rm -rf /var/lib/apt/lists/*
# A new entrypoint script that wraps the existing NocoDB entrypoint script, but also runs our sync
COPY entrypoint.sh /usr/src/appEntry/entrypoint.sh
# Add SQLite syncing script
COPY sync-sqlite-to-git.sh /usr/src/appEntry/sync-sqlite-to-git.sh
RUN chmod +x /usr/src/appEntry/*.sh
# Start NocoDB and our sync background worker
ENTRYPOINT ["sh", "/usr/src/appEntry/entrypoint.sh"]