Does alpine [apk add libgdiplus --no-cache] have an equivalent in ubuntu?(RoxyFileman)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 年 前
I'm new to docker and I want to get rid of this problem linked here for working with nopcommerce 4.2 using docker. I am using Azure DevOps online service as a DevOps server and at the time, hosted agents only support windows-2019 and ubuntu-* containers. Document

apk add libgdiplus --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted


My Dockerfile(Line 2 not working)
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env

RUN apt-get install -y libgdiplus

WORKDIR /app

COPY . /app

WORKDIR /app/Presentation/Nop.Web

RUN dotnet restore

RUN dotnet publish -c Release -o /app/out

WORKDIR /app/out

VOLUME /app/out/App_Data

VOLUME /app/out/wwwroot

VOLUME /app/out/Plugins

VOLUME /app/out/Themes

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2

WORKDIR /app

COPY --from=build-env /app/out .

ENTRYPOINT ["dotnet", "Nop.Web.dll"]



My Pipeline YAML file:
trigger:
- master

pool:
vmImage: 'ubuntu:latest'

variables:
imageName: 'PROJECTNAME:$(Build.BuildId)'
steps:
- script: |
docker build -f Dockerfile -t DOCKERID/$(imageName) .
docker login -u DOCKERID-p PASSWORD
docker push USERNAME/$(imageName)
3 年 前
Same problem here. any suggestion?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.