A Democratic Social Network. Currently available at https://democraticnet.de The Test Server is available at https://test.democraticnet.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
DemNet/Dockerfile

28 lines
661 B

FROM python:3.7
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
RUN git config --global user.email "info@democraticnet.de"
RUN git config --global user.name "The Users of the Democraticnet"
ARG POSTGRES_DB
ARG POSTGRES_USER
ARG POSTGRES_PASSWORD
ARG POSTGRES_HOST
ARG POSTGRES_PORT
ARG APP_ENV
ARG KEY_FILE
ARG CERT_FILE
ENV POSTGRES_DB $POSTGRES_DB
ENV POSTGRES_USER $POSTGRES_USER
ENV POSTGRES_PASSWORD $POSTGRES_PASSWORD
ENV POSTGRES_HOST $POSTGRES_HOST
ENV POSTGRES_PORT $POSTGRES_PORT
ENV APP_ENV $APP_ENV
ENV KEY_FILE $KEY_FILE
ENV CERT_FILE $CERT_FILE
EXPOSE 443
CMD gunicorn -b 0.0.0.0:8888 --limit-request-line 0 --log-file - main:app