mirror of
https://github.com/g3rv4/FakeRelay.git
synced 2024-11-28 10:13:07 +01:00
16 lines
522 B
Docker
16 lines
522 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
ARG ARCH=
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0.405-alpine3.16-${ARCH} AS builder
|
|
WORKDIR /src
|
|
COPY src /src/
|
|
RUN dotnet publish -c Release /src/FakeRelay.sln -o /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0.13-alpine3.16-${ARCH}
|
|
VOLUME ["/data"]
|
|
ENV CONFIG_PATH=/data/config.json
|
|
COPY --from=builder /app /app
|
|
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" ]
|