Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base

#Install System.Drawing native dependencies, required for NetBarcode
RUN apt-get update \
&& apt-get install -y --allow-unauthenticated \
libc6-dev \
libgdiplus \
libx11-dev \
fonts-urw-base35 \
fonts-dejavu \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -24,10 +20,10 @@ COPY ["BinaryKits.Zpl.Label/BinaryKits.Zpl.Label.csproj", "BinaryKits.Zpl.Label/
RUN dotnet restore "BinaryKits.Zpl.Viewer.WebApi/BinaryKits.Zpl.Viewer.WebApi.csproj"
COPY . .
WORKDIR "/src/BinaryKits.Zpl.Viewer.WebApi"
RUN dotnet build "BinaryKits.Zpl.Viewer.WebApi.csproj" -c Release -o /app/build
RUN dotnet build "BinaryKits.Zpl.Viewer.WebApi.csproj" --os linux -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "BinaryKits.Zpl.Viewer.WebApi.csproj" -c Release -o /app/publish
RUN dotnet publish "BinaryKits.Zpl.Viewer.WebApi.csproj" --os linux -c Release -o /app/publish

FROM base AS final
WORKDIR /app
Expand Down
Loading