Skip to content

Commit 1883c87

Browse files
update dockerfile
1 parent de6a0af commit 1883c87

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN yarn install
1111
RUN cp config/settings.example.yml config/settings.yml
1212
# Mount config/settings.yml as a volume
1313
VOLUME /usr/src/app/config/settings.yml
14+
# Special exec command to detect if settings.yml is mounted as a volume
15+
ENTRYPOINT ["bash -c 'if [ ! -f config/settings.yml ]; then cp config/settings.example.yml config/settings.yml; fi;'"]
1416
# Run the app
1517
EXPOSE 9293
1618
CMD yarn start

0 commit comments

Comments
 (0)