mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Test multi-stage Dockerfile.
This commit is contained in:
parent
73b4420a87
commit
1a295a9813
@ -1,11 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0-jammy
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENV ASPNETCORE_ENVIRONMENT="Production"
|
||||
ENV ASPNETCORE_URLS="http://*:5000"
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0-jammy AS setup
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
@ -18,6 +11,16 @@ RUN \
|
||||
unzip -o ./Server.zip -d /app && \
|
||||
rm ./Server.zip
|
||||
|
||||
|
||||
FROM setup AS execute
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENV ASPNETCORE_ENVIRONMENT="Production"
|
||||
ENV ASPNETCORE_URLS="http://*:5000"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN \
|
||||
@ -28,4 +31,7 @@ VOLUME "/remotely-data"
|
||||
|
||||
RUN chmod +x "/src/DockerMain.sh"
|
||||
|
||||
ENTRYPOINT ["/src/DockerMain.sh"]
|
||||
ENTRYPOINT ["/src/DockerMain.sh"]
|
||||
|
||||
HEALTHCHECK --interval=5m --timeout=3s \
|
||||
CMD curl -f http://localhost:5000/ || exit 1
|
||||
Loading…
Reference in New Issue
Block a user