mirror of
https://github.com/bitwarden/server.git
synced 2024-12-28 17:57:37 +01:00
Fix directory issue in Api and Events Dockerfiles (#1371)
This commit is contained in:
parent
4f3d1587e2
commit
99ed04552c
@ -11,7 +11,7 @@ RUN apt-get update \
|
||||
ENV ASPNETCORE_URLS http://+:5000
|
||||
WORKDIR /app
|
||||
EXPOSE 5000
|
||||
COPY obj/build-output/publish/Api .
|
||||
COPY obj/build-output/publish .
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
|
@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)"
|
||||
echo "Restore"
|
||||
dotnet restore "$DIR/Api.csproj"
|
||||
echo "Clean"
|
||||
dotnet clean "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Api"
|
||||
dotnet clean "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
||||
echo "Publish"
|
||||
dotnet publish "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Api"
|
||||
dotnet publish "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
|
@ -11,7 +11,7 @@ RUN apt-get update \
|
||||
ENV ASPNETCORE_URLS http://+:5000
|
||||
WORKDIR /app
|
||||
EXPOSE 5000
|
||||
COPY obj/build-output/publish/Events .
|
||||
COPY obj/build-output/publish .
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
|
@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)"
|
||||
echo "Restore"
|
||||
dotnet restore "$DIR/Events.csproj"
|
||||
echo "Clean"
|
||||
dotnet clean "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Events"
|
||||
dotnet clean "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
||||
echo "Publish"
|
||||
dotnet publish "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Events"
|
||||
dotnet publish "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
|
Loading…
Reference in New Issue
Block a user