2022-12-05 04:37:07 +01:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
2022-12-25 21:50:58 +01:00
|
|
|
ARG ARCH=
|
2023-01-11 20:10:41 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0.405-alpine3.16-${ARCH} AS builder
|
2022-12-05 04:37:07 +01:00
|
|
|
WORKDIR /src
|
|
|
|
COPY src /src/
|
2022-12-05 12:38:07 +01:00
|
|
|
RUN dotnet publish -c Release /src/GetMoarFediverse.csproj -o /app
|
2022-12-05 04:37:07 +01:00
|
|
|
|
2023-01-11 20:10:41 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0.13-alpine3.16-${ARCH}
|
2022-12-05 04:37:07 +01:00
|
|
|
VOLUME ["/data"]
|
|
|
|
ENV CONFIG_PATH=/data/config.json
|
|
|
|
COPY --from=builder /app /app
|
2022-12-05 12:38:07 +01:00
|
|
|
CMD ["/app/GetMoarFediverse"]
|