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