All checks were successful
Container Publish / build-image (push) Successful in 5m55s
questo ci permette di ridurre parecchio il tempo di una build, mettendo in cache le risorse elaborate (principalmente le immagini e le relative versioni scalate) Reviewed-on: #159 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
19 lines
454 B
Docker
19 lines
454 B
Docker
FROM alpine:latest
|
|
|
|
RUN \
|
|
apk -U upgrade && \
|
|
apk add nginx curl logrotate && \
|
|
mkdir -p /wwwroot /logs && \
|
|
chown -R nginx:www-data /wwwroot /logs && \
|
|
chmod -R a-x,a=rX,ug+w /wwwroot /logs
|
|
|
|
COPY docker/rootfs /
|
|
COPY --chown=nginx:www-data --chmod=a-x,a=rX,ug+w public/ /wwwroot/
|
|
|
|
# config test
|
|
RUN nginx -t
|
|
|
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail -o /dev/null http://127.0.0.1:80/
|
|
|
|
ENTRYPOINT [ "/bin/sh", "/app/entrypoint.sh" ]
|