mirror of
https://github.com/g3rv4/FakeRelay.git
synced 2024-11-21 23:03:07 +01:00
13 lines
375 B
Docker
13 lines
375 B
Docker
ARG ARCH=
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18 AS builder
|
|
WORKDIR /src
|
|
COPY src /src/
|
|
RUN dotnet publish -c Release /src/FakeRelay.sln -o /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-alpine3.18-${ARCH}
|
|
WORKDIR /app
|
|
ENV CONFIG_PATH=/data/config.json
|
|
COPY --from=builder /app /app
|
|
COPY entrypoint.sh /app/entrypoint.sh
|
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|