added VOLUME instruction to Dockerfile

This commit is contained in:
Mia Rose Winter 2024-01-13 15:41:46 +01:00
parent f26f961e79
commit 8f9ffe0570
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -4,6 +4,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
RUN mkdir ./files && chown app ./files
VOLUME /app/files
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build