Updated the docker publish to support ARMv8
This commit is contained in:
parent
5ee7ebadb1
commit
c4a985f8b5
2 changed files with 3 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Stage 1 - Build the frontend
|
# Stage 1 - Build the frontend
|
||||||
FROM node:12.15-buster AS node-build-env
|
FROM amd64/node:15.5-buster AS node-build-env
|
||||||
|
|
||||||
RUN mkdir /appclient
|
RUN mkdir /appclient
|
||||||
WORKDIR /appclient
|
WORKDIR /appclient
|
||||||
|
|
@ -20,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.1-buster-slim 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 .
|
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag rogerfar/rdtclient .
|
||||||
docker push rogerfar/rdtclient
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue