Files
SkydiveLogs/Dockerfile
Sébastien ANDRE ea7afe7402 Update Angular
2023-12-13 09:55:41 +01:00

29 lines
695 B
Docker

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:7.0.14-bookworm-slim-amd64 AS base
EXPOSE 80
RUN apt-get -y update
RUN apt-get -y install nginx
RUN mkdir /app
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
COPY startup.sh /app
RUN chmod 755 /app/startup.sh
RUN update-rc.d nginx defaults
COPY nginx.conf /etc/nginx/sites-available/default
VOLUME /app/API/Data
VOLUME /app/Front/config
ENV ASPNETCORE_URLS http://+:5001
CMD ["sh", "/app/startup.sh"]