mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
1355e993dd
I kept hitting an error when building solr `/bin/sh: /docker-entrypoint.sh: Text file busy`, this is caused where the script is attempted to be ran before the previous `chmod` command has properly sync'd to disk. Adding in a sync fixes this trouble for me.
11 lines
230 B
Docker
11 lines
230 B
Docker
FROM solr:7-alpine
|
|
USER root
|
|
COPY docker-entrypoint.sh /
|
|
|
|
RUN apk --no-cache add su-exec curl tzdata \
|
|
&& chmod +x /docker-entrypoint.sh \
|
|
&& sync \
|
|
&& /docker-entrypoint.sh --bootstrap
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|