FROM ghcr.io/frepple/frepple-community:latest

# Database connection
# The default settings below are assuming that PostgreSQL is installed
# on the docker host server.
ENV POSTGRES_HOST    "host.docker.internal"
ENV POSTGRES_PORT    "5432"
ENV POSTGRES_USER     "frepple"
ENV POSTGRES_PASSWORD   "frepple"
ENV POSTGRES_DBNAME   "frepple_"

# # Add special settings to the frepple configuration file
# RUN echo "MYAPPSETTING=True" >> /etc/frepple/djangosettings.py

# Copy the custom app. Apps in this folder are automatically detected
# and you can install them from the admin/apps screen.
COPY my_app /usr/share/frepple/venv/lib/python3.8/site-packages/freppleapps/my_app

# # Install extra python packages
# COPY requirements.txt /
# RUN python3 -m pip install -r requirements.txt

# Provide license file (Enterprise Edition only)
# COPY license.xml /etc/frepple

# # Optionally enable https.
# # For production use you'll need a proper ssl certificate instead
# # of the default snakeoil self-signed certificate. 
# EXPOSE 443
# RUN a2enmod ssl && \
#     a2ensite default-ssl
