mirror of
https://github.com/fergalmoran/podnoms.git
synced 2026-01-23 08:56:25 +00:00
19 lines
485 B
Docker
Executable File
19 lines
485 B
Docker
Executable File
FROM microsoft/aspnetcore-build:2.0 AS build-env
|
|
WORKDIR /app
|
|
|
|
COPY *.csproj ./
|
|
COPY NuGet.config ./
|
|
RUN dotnet restore
|
|
|
|
COPY . ./
|
|
RUN dotnet publish -c Release -o out
|
|
|
|
FROM microsoft/aspnetcore:2.0
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y curl python ffmpeg && \
|
|
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && \
|
|
chmod a+rx /usr/local/bin/youtube-dl
|
|
|
|
COPY --from=build-env /app/out .
|
|
ENTRYPOINT ["dotnet", "PodNoms.Api.dll"]
|