Files
pv-energy-calculator/Dockerfile
Wolfgang Hottgenroth f03f5fccfa
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
use new database
2026-01-31 11:07:23 +01:00

23 lines
388 B
Docker

FROM alpine:3.23
ENV PGHOST="database.database2.svc.cluster.local"
ENV PGDATABASE="udi-hottis"
ENV PGUSER="pv-energy-calculator"
ENV PGPASSWORD="-"
ENV PGSSLMODE="require"
ARG USER="user"
RUN \
apk add --no-cache postgresql16-client && \
addgroup $USER && \
adduser -G $USER -D $USER
USER $USER
WORKDIR /home/$USER
COPY ./queries/pvec.sql .
CMD [ "psql", "-f", "pvec.sql" ]