Skip to content

Commit

Permalink
Попытка по рекомендации для сборки арм
Browse files Browse the repository at this point in the history
  • Loading branch information
k2589 authored Mar 3, 2020
1 parent 3e16bde commit 574a2e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile.ARM
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ COPY src/ ./
RUN dotnet restore OneScript/OneScriptWeb.csproj
RUN dotnet publish OneScript/OneScriptWeb.csproj -c Release -o /app/out -f netcoreapp2.2 -r linux-arm

WORKDIR /builder/working/directory
RUN curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .

# RUNTIME
#FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
FROM arm32v7/ubuntu:latest

# RUN apt update
COPY --from=build-env /builder/working/directory/qemu-arm-static /usr/bin

RUN apt update
RUN apt install -y --no-install-recommends liblttng-ust0 libcurl4 libssl1.0.0 libkrb5-3 zlib1g libicu60 && \
rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 574a2e7

Please sign in to comment.