dockerfile update
This commit is contained in:
parent
4254b4942d
commit
e44e8139c8
1 changed files with 5 additions and 4 deletions
|
|
@ -109,7 +109,8 @@ ENV MIX_ENV="prod" \
|
||||||
# Add security headers
|
# Add security headers
|
||||||
SECURITY_HEADERS="true" \
|
SECURITY_HEADERS="true" \
|
||||||
# Disable debug info in production
|
# Disable debug info in production
|
||||||
ERL_AFLAGS="+S 1:1 +A 1 +K true -kernel shell_history enabled -kernel shell_history_file_bytes 0"
|
ERL_AFLAGS="+S 1:1 +A 1 +K true -kernel shell_history enabled -kernel shell_history_file_bytes 0" \
|
||||||
|
PHX_SERVER=true
|
||||||
|
|
||||||
# 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 ./
|
||||||
|
|
@ -125,7 +126,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 ["sh", "-c", "umask 027 && /app/bin/server"]
|
CMD /app/bin/server
|
||||||
|
|
||||||
# Add security-related metadata
|
# Add security-related metadata
|
||||||
LABEL org.opencontainers.image.vendor="APRS.me" \
|
LABEL org.opencontainers.image.vendor="APRS.me" \
|
||||||
|
|
@ -137,5 +138,5 @@ LABEL org.opencontainers.image.vendor="APRS.me" \
|
||||||
security.non-root-user="app" \
|
security.non-root-user="app" \
|
||||||
security.privileged="false"
|
security.privileged="false"
|
||||||
|
|
||||||
# Add security configuration
|
# Container configuration is handled by Dokku
|
||||||
EXPOSE 4000
|
EXPOSE $PORT
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue