Files
pv-energy-calculator/Dockerfile
Wolfgang Hottgenroth e6b3790e4c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
new alpine image
2025-12-15 17:53:44 +01:00

23 lines
388 B
Docker

FROM alpine:3.23
ENV PGHOST="database.database1.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" ]