dokku port fixes
This commit is contained in:
parent
e107cd7a4b
commit
ab64585c02
2 changed files with 14 additions and 10 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -122,10 +122,14 @@ ENV MIX_ENV="prod" \
|
||||||
# Only copy the final release from the build stage
|
# Only copy the final release from the build stage
|
||||||
COPY --from=builder --chown=1000:1000 /app/_build/${MIX_ENV}/rel/aprs ./
|
COPY --from=builder --chown=1000:1000 /app/_build/${MIX_ENV}/rel/aprs ./
|
||||||
|
|
||||||
|
# Copy the debug startup script
|
||||||
|
COPY --chown=1000:1000 start_server.sh ./
|
||||||
|
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|
||||||
# Ensure the server binary is executable
|
# Ensure the server binary and startup script are executable
|
||||||
RUN chmod +x /app/bin/server
|
RUN chmod +x /app/bin/server && \
|
||||||
|
chmod +x /app/start_server.sh
|
||||||
|
|
||||||
# If using an environment that doesn't automatically reap zombie processes, it is
|
# If using an environment that doesn't automatically reap zombie processes, it is
|
||||||
# advised to add an init process such as tini via `apt-get install`
|
# advised to add an init process such as tini via `apt-get install`
|
||||||
|
|
@ -133,7 +137,7 @@ RUN chmod +x /app/bin/server
|
||||||
# ENTRYPOINT ["/tini", "--"]
|
# ENTRYPOINT ["/tini", "--"]
|
||||||
|
|
||||||
# Add specific capabilities needed by the app
|
# Add specific capabilities needed by the app
|
||||||
CMD /app/bin/server
|
CMD ["/app/start_server.sh"]
|
||||||
|
|
||||||
# Add security-related metadata
|
# Add security-related metadata
|
||||||
LABEL org.opencontainers.image.vendor="APRS.me" \
|
LABEL org.opencontainers.image.vendor="APRS.me" \
|
||||||
|
|
|
||||||
14
app.json
14
app.json
|
|
@ -13,18 +13,18 @@
|
||||||
"type": "startup",
|
"type": "startup",
|
||||||
"name": "web-startup",
|
"name": "web-startup",
|
||||||
"path": "/ready",
|
"path": "/ready",
|
||||||
"attempts": 5,
|
"attempts": 10,
|
||||||
"timeout": 30,
|
"timeout": 60,
|
||||||
"wait": 5,
|
"wait": 10,
|
||||||
"initial_delay": 20
|
"initial_delay": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "liveness",
|
"type": "liveness",
|
||||||
"name": "web-liveness",
|
"name": "web-liveness",
|
||||||
"path": "/health",
|
"path": "/health",
|
||||||
"attempts": 3,
|
"attempts": 5,
|
||||||
"timeout": 10,
|
"timeout": 30,
|
||||||
"wait": 10
|
"wait": 15
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue