docker: entry point change working directory from root to /data

This commit is contained in:
Chris Lu 2021-11-12 17:21:49 -08:00
parent 7bf891c00a
commit 947fe4cc97
6 changed files with 7 additions and 0 deletions

View file

@ -48,6 +48,7 @@ EXPOSE 7333
RUN mkdir -p /data/filerldb2 RUN mkdir -p /data/filerldb2
VOLUME /data VOLUME /data
WORKDIR /data
COPY filer.toml /etc/seaweedfs/filer.toml COPY filer.toml /etc/seaweedfs/filer.toml
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh

View file

@ -37,6 +37,7 @@ EXPOSE 7333
RUN mkdir -p /data/filerldb2 RUN mkdir -p /data/filerldb2
VOLUME /data VOLUME /data
WORKDIR /data
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View file

@ -36,6 +36,7 @@ EXPOSE 7333
RUN mkdir -p /data/filerldb2 RUN mkdir -p /data/filerldb2
VOLUME /data VOLUME /data
WORKDIR /data
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View file

@ -36,6 +36,7 @@ EXPOSE 7333
RUN mkdir -p /data/filerldb2 RUN mkdir -p /data/filerldb2
VOLUME /data VOLUME /data
WORKDIR /data
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View file

@ -26,6 +26,7 @@ EXPOSE 7333
RUN mkdir -p /data/filerldb2 RUN mkdir -p /data/filerldb2
VOLUME /data VOLUME /data
WORKDIR /data
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View file

@ -54,6 +54,8 @@ RUN mkdir -p /data/filerldb2
VOLUME /data VOLUME /data
WORKDIR /data
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]