# Dockerfile per Lab 05 - Database & RDS # Nota: Lab 05 usa immagini ufficiali (PostgreSQL, Nginx, Alpine) # Questo Dockerfile รจ fornito come reference per customizzazioni future FROM alpine:3.19 # Creare utente non-root per sicurezza (INF-01 compliance) RUN addgroup -g 1000 appgroup && \ adduser -D -u 1000 -G appgroup appuser # Installare strumenti di test database RUN apk add --no-cache \ postgresql-client \ curl \ netcat-openbsd \ bind-tools \ && rm -rf /var/cache/apk/* # Passare all'utente non-root USER appuser # Set working directory WORKDIR /home/appuser # Comando di default - container in attesa per testing CMD ["sh", "-c", "sleep 3600"]