From 78e36f99fd9847067623ada7e99aa0552e177c8b Mon Sep 17 00:00:00 2001 From: Dino Chiesa Date: Mon, 18 Nov 2024 21:23:33 -0800 Subject: [PATCH] fix: modify Dockerfile.console so that it works properly on windows --- docker/Dockerfile.console | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile.console b/docker/Dockerfile.console index 4b3f6f22f..27c786954 100644 --- a/docker/Dockerfile.console +++ b/docker/Dockerfile.console @@ -1,20 +1,24 @@ ################### # CREATE FINAL LAYER ################### -FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final +FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final RUN apt-get update \ - && apt-get -y install bash tzdata \ - && apt-get purge -y -f --force-yes $EXT_BUILD_DEPS \ - && apt-get autoremove -y \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && apt-get -y install bash tzdata \ + && apt-get purge -y -f --force-yes $EXT_BUILD_DEPS \ + && apt-get autoremove -y \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* RUN groupadd -g 1015 p2g && useradd -g p2g -u 1015 p2g WORKDIR /app -RUN mkdir -m770 {output,data,working} +RUN mkdir -m770 working +RUN mkdir -m770 data +RUN mkdir -m770 output +# this last is for optionally mounting a directory for configuration +RUN mkdir -m770 mounted-config ################### # BUILD LAYER