mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
let's see if not copying the cache will help with the docker image size
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS base
|
||||
|
||||
# Native libgdiplus dependencies
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y --allow-unauthenticated libc6-dev libgdiplus libx11-dev fonts-roboto
|
||||
|
||||
# debian-specific?
|
||||
#RUN rm -rf /var/lib/apt/lists/*
|
||||
#RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so
|
||||
|
||||
# Regular stuff
|
||||
COPY packages /root/.nuget/packages/
|
||||
#COPY packages /root/.nuget/packages/
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN rm -rf ./packages
|
||||
#RUN rm -rf ./packages
|
||||
RUN git status
|
||||
# Build and test everything
|
||||
RUN dotnet restore "CompatBot/CompatBot.csproj"
|
||||
RUN dotnet build "CompatBot/CompatBot.csproj" -c Release
|
||||
ENV RUNNING_IN_DOCKER true
|
||||
# Limit server GC to 512 MB heap max
|
||||
|
||||
@@ -62,8 +62,8 @@ jobs:
|
||||
- script: dotnet build --configuration Release
|
||||
displayName: 'dotnet build Release'
|
||||
|
||||
- script: "mkdir packages && cp -a /home/vsts/.nuget/packages ./packages/"
|
||||
displayName: 'copy nuget package cache for docker'
|
||||
# - script: "mkdir packages && cp -a /home/vsts/.nuget/packages ./packages/"
|
||||
# displayName: 'copy nuget package cache for docker'
|
||||
|
||||
- task: Docker@2
|
||||
displayName: 'logging into docker registry'
|
||||
|
||||
Reference in New Issue
Block a user