-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
18 lines (16 loc) · 721 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
WORKDIR /src
COPY ["NeoToCosmos/NeoToCosmos.csproj", "NeoToCosmos/"]
RUN dotnet restore "NeoToCosmos/NeoToCosmos.csproj"
COPY . .
WORKDIR "/src/NeoToCosmos"
RUN dotnet build "NeoToCosmos.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "NeoToCosmos.csproj" -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-alpine AS final
RUN echo "@edgetesting http://dl-cdn.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories && \
apk add --update rocksdb-dev@edgetesting && \
rm -rf /var/cache/apk/*
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "NeoToCosmos.dll"]