mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
integrate keydb to odoocker
This commit is contained in:
32
pgadmin/Dockerfile
Normal file
32
pgadmin/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
#------------------------#
|
||||
# PGAdmin Server #
|
||||
#------------------------#
|
||||
ARG PGADMIN_TAG
|
||||
FROM dpage/pgadmin4:${PGADMIN_TAG}
|
||||
|
||||
# Receive ARGs from docker-compose.yml & convert them into ENVs
|
||||
ARG PGADMIN_DEFAULT_EMAIL
|
||||
|
||||
ENV PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
|
||||
|
||||
# Switch to root user
|
||||
USER root
|
||||
|
||||
# Install bash
|
||||
RUN apk add --no-cache bash jq sqlite
|
||||
|
||||
# Conditionally copy the private key if it exists
|
||||
COPY --chown=pgadmin:root ./pgadmin/private_key /pgadmin4/private_key
|
||||
# Set permissions for the private key
|
||||
|
||||
# Copy your script file into the Docker image
|
||||
COPY --chown=pgadmin:root ./.env /
|
||||
COPY ./pgadmin/start_pgadmin.sh /var/lib/pgadmin/start_pgadmin.sh
|
||||
|
||||
# Make the script executable
|
||||
RUN chmod +x /var/lib/pgadmin/start_pgadmin.sh
|
||||
# Run your script
|
||||
RUN /var/lib/pgadmin/start_pgadmin.sh
|
||||
|
||||
# Expose the necessary port
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user