Fixed docker file to create 1 release again
This commit is contained in:
parent
63b04bbe33
commit
9071db58a2
2 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
ARG ARCH=
|
|
||||||
|
|
||||||
# Stage 1 - Build the frontend
|
# Stage 1 - Build the frontend
|
||||||
FROM amd64/node:15.5-buster AS node-build-env
|
FROM amd64/node:15.5-buster AS node-build-env
|
||||||
|
|
||||||
|
|
@ -11,7 +9,7 @@ RUN npm ci
|
||||||
RUN npx ng build --prod --output-path=out
|
RUN npx ng build --prod --output-path=out
|
||||||
|
|
||||||
# Stage 2 - Build the backend
|
# Stage 2 - Build the backend
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0.102-1-buster-slim-${ARCH} AS dotnet-build-env
|
FROM mcr.microsoft.com/dotnet/sdk:5.0.102-1-buster-slim AS dotnet-build-env
|
||||||
|
|
||||||
RUN mkdir /appserver
|
RUN mkdir /appserver
|
||||||
WORKDIR /appserver
|
WORKDIR /appserver
|
||||||
|
|
@ -22,7 +20,7 @@ RUN dotnet build -c Release
|
||||||
RUN dotnet publish -c Release -o out
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
# Stage 3 - Build runtime image
|
# Stage 3 - Build runtime image
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0.2-buster-slim-${ARCH} AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0.2-buster-slim AS base
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=dotnet-build-env /appserver/out .
|
COPY --from=dotnet-build-env /appserver/out .
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
docker build --tag rogerfar/rdtclient:latest --build-arg ARCH=amd64 .
|
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag rogerfar/rdtclient .
|
||||||
docker push rogerfar/rdtclient:latest
|
|
||||||
Loading…
Reference in a new issue