FakeRelay/Dockerfile

14 lines
485 B
Docker
Raw Normal View History

2022-12-18 15:18:09 +01:00
ARG ARCH=
2024-01-01 15:52:47 +01:00
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18 AS builder
2022-12-03 18:27:50 +01:00
WORKDIR /src
COPY src /src/
RUN dotnet publish -c Release /src/FakeRelay.sln -o /app
2023-12-14 01:31:54 +01:00
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-alpine3.18-${ARCH}
2022-12-03 18:27:50 +01:00
VOLUME ["/data"]
ENV CONFIG_PATH=/data/config.json
COPY --from=builder /app /app
2022-12-04 14:41:02 +01:00
COPY entrypoint.sh /app/entrypoint.sh
RUN ln -s /app/FakeRelay.Cli /bin/cli && ln -s /app/FakeRelay.Web /bin/web && chmod +x /app/entrypoint.sh
ENTRYPOINT [ "/app/entrypoint.sh" ]