mirror of
https://github.com/g3rv4/GetMoarFediverse.git
synced 2024-11-21 23:23:09 +01:00
14 lines
384 B
Docker
14 lines
384 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/GetMoarFediverse.csproj -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
|
|
CMD ["/app/GetMoarFediverse"]
|