1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

Fix directory issue in Api and Events Dockerfiles (#1371)

This commit is contained in:
Vince Grassia 2021-06-01 13:46:39 -04:00 committed by GitHub
parent 4f3d1587e2
commit 99ed04552c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ RUN apt-get update \
ENV ASPNETCORE_URLS http://+:5000 ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app WORKDIR /app
EXPOSE 5000 EXPOSE 5000
COPY obj/build-output/publish/Api . COPY obj/build-output/publish .
COPY entrypoint.sh / COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View File

@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)"
echo "Restore" echo "Restore"
dotnet restore "$DIR/Api.csproj" dotnet restore "$DIR/Api.csproj"
echo "Clean" 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" 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" echo -e "\nBuilding docker image"
docker --version docker --version

View File

@ -11,7 +11,7 @@ RUN apt-get update \
ENV ASPNETCORE_URLS http://+:5000 ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app WORKDIR /app
EXPOSE 5000 EXPOSE 5000
COPY obj/build-output/publish/Events . COPY obj/build-output/publish .
COPY entrypoint.sh / COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View File

@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)"
echo "Restore" echo "Restore"
dotnet restore "$DIR/Events.csproj" dotnet restore "$DIR/Events.csproj"
echo "Clean" 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" 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" echo -e "\nBuilding docker image"
docker --version docker --version