File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,12 +96,14 @@ ENV MIX_ENV="prod"
9696
9797# Only copy the final release from the build stage
9898COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/mudan ./
99+ COPY --chown=nobody:root entrypoint.sh /app/entrypoint.sh
100+ RUN chmod +x /app/entrypoint.sh
99101
100102USER nobody
101103
102104# If using an environment that doesn't automatically reap zombie processes, it is
103105# advised to add an init process such as tini via `apt-get install`
104106# above and adding an entrypoint. See https://github.com/krallin/tini for details
105107# ENTRYPOINT ["/tini", "--"]
106-
108+ ENTRYPOINT [ "/app/entrypoint.sh" ]
107109CMD ["/app/bin/server" ]
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ /app/bin/mundan eval " Mudan.Release.migrate()"
5+
6+ exec " $@ "
You can’t perform that action at this time.
0 commit comments