From e676f8fcf9c46c680e80e223b913a938ff98bc72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20ANDRE?= Date: Fri, 5 Jan 2024 16:07:58 +0100 Subject: [PATCH] Update --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c9b1469..f17d7bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,9 @@ EXPOSE 80 RUN apt-get -y update RUN apt-get -y install nginx -RUN mkdir /app +RUN mkdir -p /app/Front /app/API -RUN mkdir /app/Front COPY Front/skydivelogs-app/dist /app/Front - -RUN mkdir /app/API COPY Back/dist /app/API RUN rm -f /app/startup.sh @@ -20,10 +17,15 @@ RUN chmod 755 /app/startup.sh RUN update-rc.d nginx defaults COPY nginx.conf /etc/nginx/sites-available/default +# CMD ["service" "nginx" "start;"] +# RUN service nginx restart VOLUME /app/API/Data VOLUME /app/Front/config ENV ASPNETCORE_URLS http://+:5001 -CMD ["sh", "/app/startup.sh"] \ No newline at end of file +# WORKDIR /app/API +# ENTRYPOINT ["dotnet", "skydiveLogs-api.dll"] +ENTRYPOINT ["sh", "/app/startup.sh"] +# CMD ["sh", "/app/startup.sh"] \ No newline at end of file