Add local PAM docker-compose

This commit is contained in:
Bolke de Bruin
2024-03-19 09:25:15 +01:00
parent 46620c87b7
commit 79f8d8f545
3 changed files with 35 additions and 7 deletions

View File

@@ -35,13 +35,15 @@ RUN apk --no-cache add linux-pam musl
# make tempdir in case filestore is used
ADD tmp.tar /
USER 1001
COPY --chown=0 rdpgw-pam /etc/pam.d/rdpgw
USER 1001
COPY --chown=1001 run.sh run.sh
COPY --chown=1001 --from=builder /opt/rdpgw /opt/rdpgw
COPY --chown=1001 --from=builder /etc/passwd /etc/passwd
COPY --chown=1001 --from=builder /etc/ssl/certs /etc/ssl/certs
#COPY --chown=1001 rdpgw.yaml /opt/rdpgw/rdpgw.yaml
USER 0
WORKDIR /opt/rdpgw
ENTRYPOINT ["/bin/sh", "/run.sh"]