Merge pull request 'try fix docker file' (#2) from feature/ci-cd into master
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #2
This commit is contained in:
commit
766097d9f6
@ -1,10 +1,11 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./Budet-cho-bot ./Budet-cho-bot
|
COPY ["/Budet-cho-bot", "Budet-cho-bot"]
|
||||||
|
COPY ["/Config.json", "Config.json"]
|
||||||
RUN dotnet restore Budet-cho-bot/Budet-cho-bot.fsproj
|
RUN ls
|
||||||
RUN dotnet publish Budet-cho-bot/Budet-cho-bot.fsproj -c Production -o /app/publish
|
RUN dotnet restore "Budet-cho-bot/Budet-cho-bot.fsproj"
|
||||||
|
RUN dotnet publish "Budet-cho-bot/Budet-cho-bot.fsproj" -c Production -o /app/publish
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user