NETTİM
← Kod Sonuçlarına Dön
Dockerfile PostgreSQL SQL sorguları Görsel işlemleri Ağ işlemleri Sistem yönetimi Yapılandırma dosyaları Lisans: Belirtilmemis

Dockerfile — Dockerfile

Dockerfile PostgreSQL entegrasyonlu — SQL sorguları, Görsel işlemleri, Ağ işlemleri. SQL sorgusu içerir.
Dockerfile • Dockerfile
FROM golang:1.26-bookworm AS builder

# Add PostgreSQL apt repo for PG 18
RUN apt-get update && apt-get install -y curl ca-certificates gnupg lsb-release && \
    curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/pgdg.gpg && \
    echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
    apt-get update && \
    apt-get install -y postgresql-server-dev-18 && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .

# Run code-generator unit tests (no PG needed)
RUN cd cmd/plgo && go test -v ./...

# Build the plgo CLI
RUN cd cmd/plgo && go build -o /usr/local/bin/plgo .

# Build the example extension (verifies the full pipeline)
RUN cd example && /usr/local/bin/plgo .

# Build the test extension (verifies the full pipeline)
RUN cd test && /usr/local/bin/plgo .

Tespit Edilen SQL Sorguları

update && apt-get install -y curl ca-certificates gnupg lsb-release && \

Benzer Kod Örnekleri

Dockerfile — Dockerfile
Dockerfile • SQL sorguları
Dockerfile — Dockerfile
Dockerfile • Veri dönüştürme
JavaScript (Bootstrap) — .gitlab-ci.yml
JavaScript • Bootstrap • SQL sorguları
JSON — composer.json
JSON • SQL sorguları