mirror of
https://github.com/g3rv4/GetMoarFediverse.git
synced 2024-11-24 16:43:17 +01:00
15 lines
465 B
Docker
15 lines
465 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
ARG ARCH=
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18-${ARCH} AS builder
|
|
WORKDIR /src
|
|
COPY src /src/
|
|
RUN dotnet restore /src/GetMoarFediverse.csproj --disable-parallel
|
|
RUN dotnet publish -c Release /src/GetMoarFediverse.csproj -o /app --no-restore
|
|
|
|
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
|
|
CMD ["/app/GetMoarFediverse"]
|