Update
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -6,12 +6,9 @@ EXPOSE 80
|
|||||||
RUN apt-get -y update
|
RUN apt-get -y update
|
||||||
RUN apt-get -y install nginx
|
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
|
COPY Front/skydivelogs-app/dist /app/Front
|
||||||
|
|
||||||
RUN mkdir /app/API
|
|
||||||
COPY Back/dist /app/API
|
COPY Back/dist /app/API
|
||||||
|
|
||||||
RUN rm -f /app/startup.sh
|
RUN rm -f /app/startup.sh
|
||||||
@@ -20,10 +17,15 @@ RUN chmod 755 /app/startup.sh
|
|||||||
|
|
||||||
RUN update-rc.d nginx defaults
|
RUN update-rc.d nginx defaults
|
||||||
COPY nginx.conf /etc/nginx/sites-available/default
|
COPY nginx.conf /etc/nginx/sites-available/default
|
||||||
|
# CMD ["service" "nginx" "start;"]
|
||||||
|
# RUN service nginx restart
|
||||||
|
|
||||||
VOLUME /app/API/Data
|
VOLUME /app/API/Data
|
||||||
VOLUME /app/Front/config
|
VOLUME /app/Front/config
|
||||||
|
|
||||||
ENV ASPNETCORE_URLS http://+:5001
|
ENV ASPNETCORE_URLS http://+:5001
|
||||||
|
|
||||||
CMD ["sh", "/app/startup.sh"]
|
# WORKDIR /app/API
|
||||||
|
# ENTRYPOINT ["dotnet", "skydiveLogs-api.dll"]
|
||||||
|
ENTRYPOINT ["sh", "/app/startup.sh"]
|
||||||
|
# CMD ["sh", "/app/startup.sh"]
|
||||||
Reference in New Issue
Block a user