fixed build of docker image
This commit is contained in:
@@ -3,7 +3,7 @@ pipeline:
|
|||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: phaefelfinger/tv7playlist
|
repo: phaefelfinger/tv7playlist
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- 2.0
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
debug: true
|
debug: true
|
||||||
when:
|
when:
|
||||||
|
@@ -2,7 +2,7 @@ FROM microsoft/dotnet:sdk AS build-env
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy csproj and restore as distinct layers
|
# Copy csproj and restore as distinct layers
|
||||||
COPY *.csproj ./
|
COPY ./*/*.csproj ./
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
|
||||||
# Copy everything else and build
|
# Copy everything else and build
|
||||||
@@ -14,7 +14,7 @@ FROM microsoft/dotnet:aspnetcore-runtime
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build-env /app/out .
|
COPY --from=build-env /app/Tv7Playlist/out .
|
||||||
|
|
||||||
ENV ASPNETCORE_URLS=http://+:80
|
ENV ASPNETCORE_URLS=http://+:80
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Reference in New Issue
Block a user