mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +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
|
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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user