forked from extern/FakeRelay
Make it easier to run
This commit is contained in:
parent
253f17108a
commit
51d8ae9638
@ -9,5 +9,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0.11-alpine3.16
|
|||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
ENV CONFIG_PATH=/data/config.json
|
ENV CONFIG_PATH=/data/config.json
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app /app
|
||||||
RUN ln -s /app/FakeRelay.Cli /bin/cli
|
COPY entrypoint.sh /app/entrypoint.sh
|
||||||
RUN ln -s /app/FakeRelay.Web /bin/web
|
RUN ln -s /app/FakeRelay.Cli /bin/cli && ln -s /app/FakeRelay.Web /bin/web && chmod +x /app/entrypoint.sh
|
||||||
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
|
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
if [ "$1" = "web" ]; then
|
||||||
|
web
|
||||||
|
else
|
||||||
|
cli "$@"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user