exercises

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

Dockerfile (510B)


      1 # ============================================================
      2 # Data Ingestion Service
      3 # ============================================================
      4 # Loads initial data into the database after schema is ready
      5 
      6 FROM postgres:17-alpine
      7 
      8 # Install wait-for utility
      9 RUN apk add --no-cache postgresql-client
     10 
     11 # Copy data files
     12 COPY data/*.sql /data/
     13 
     14 # Copy ingestion script
     15 COPY data/ingest.sh /ingest.sh
     16 RUN chmod +x /ingest.sh
     17 
     18 # Set working directory
     19 WORKDIR /data
     20 
     21 # Run ingestion script
     22 CMD ["/ingest.sh"]