GetMoarFediverse/Dockerfile

14 lines
385 B
Docker
Raw Normal View History

# syntax=docker/dockerfile:1
ARG ARCH=
2023-12-15 12:50:42 +01:00
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18-${ARCH} AS builder
WORKDIR /src
COPY src /src/
2022-12-05 12:38:07 +01:00
RUN dotnet publish -c Release /src/GetMoarFediverse.csproj -o /app
2023-12-15 12:50:42 +01:00
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-alpine3.18-${ARCH}
VOLUME ["/data"]
ENV CONFIG_PATH=/data/config.json
COPY --from=builder /app /app
2022-12-05 12:38:07 +01:00
CMD ["/app/GetMoarFediverse"]