FakeRelay/Dockerfile

13 lines
393 B
Docker
Raw Normal View History

2022-12-03 18:27:50 +01:00
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:6.0.403-alpine3.16 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.11-alpine3.16
VOLUME ["/data"]
ENV CONFIG_PATH=/data/config.json
COPY --from=builder /app /app
2022-12-03 21:58:35 +01:00
RUN ln -s /app/FakeRelay.Cli /bin/cli
RUN ln -s /app/FakeRelay.Web /bin/web