change database configuration to env vars, fix

This commit is contained in:
2023-09-27 12:02:37 +02:00
parent 053927e329
commit 828dffd523

View File

@ -2,12 +2,6 @@ FROM alpine:3.18.3 AS builder
ARG VERSION="dockerized"
ENV PGHOST=""
ENV PGDATABASE="mainscnt"
ENV PGUSER="sink"
ENV PGPASSWORD=""
ENV PGSSLMODE="require"
COPY sink/ /tmp/sink
RUN \
@ -21,6 +15,12 @@ RUN \
FROM alpine:3.18.3
ENV PGHOST=""
ENV PGDATABASE="mainscnt"
ENV PGUSER="sink"
ENV PGPASSWORD=""
ENV PGSSLMODE="require"
COPY --from=builder /tmp/sink/build/sink20169 /usr/local/bin/
RUN \