put all thing in there now

This commit is contained in:
2025-09-10 16:04:54 +10:00
parent ff45c461a5
commit a6a2154d81
4 changed files with 25 additions and 10 deletions
+14
View File
@@ -11,6 +11,20 @@ COPY . .
WORKDIR "/src/FamilyTreeAPI"
RUN dotnet build "./FamilyTreeAPI.csproj" -c Release -o /app/build
# create directory for import folder, and image folder
RUN mkdir /app_import
RUN mkdir /app_images
VOLUME /app_import
VOLUME /app_images
# docker run -v my_path_name_volume_host:/app_import my_image_name
# docker run -v my_path_named_volume_host:/app_images my_image_name
# docker cp /home/user/my_app/config.json my_container:/app/config.json
# docker cp /home/user/my_app/data my_container:/app/data ### copy folder data
# docker cp mycontainer:/app/output.txt /home/user/documents/
# This stage is used to publish the service project to be copied to the final stage
FROM build AS publish