31 lines
842 B
Docker
31 lines
842 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 -p /app/Front /app/API
|
|
|
|
COPY Front/skydivelogs-app/dist /app/Front
|
|
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
|
|
# CMD ["service" "nginx" "start;"]
|
|
# RUN service nginx restart
|
|
|
|
VOLUME /app/API/Data
|
|
VOLUME /app/Front/config
|
|
|
|
ENV ASPNETCORE_URLS http://+:5001
|
|
|
|
# WORKDIR /app/API
|
|
# ENTRYPOINT ["dotnet", "skydiveLogs-api.dll"]
|
|
ENTRYPOINT ["sh", "/app/startup.sh"]
|
|
# CMD ["sh", "/app/startup.sh"] |