mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
34 lines
690 B
Docker
34 lines
690 B
Docker
FROM python:3.7-slim-buster
|
|
|
|
# Add rsync
|
|
RUN apt update -qq && apt upgrade -y && apt autoremove -y
|
|
RUN apt install -y rsync && apt autoremove -y
|
|
|
|
EXPOSE 5000
|
|
|
|
# Turns off buffering for easier container logging
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# Environment variables
|
|
ENV DATABASE_URL=""
|
|
ENV GOOGLE_MAPS_API_KEY=""
|
|
ENV MAIL_DEFAULT_SENDER=""
|
|
ENV MAIL_PASSWORD=""
|
|
ENV MAIL_PORT=""
|
|
ENV MAIL_SERVER=""
|
|
ENV MAIL_USERNAME=""
|
|
ENV SECRET_KEY=""
|
|
ENV SECURITY_PASSWORD_HASH=""
|
|
ENV SERVER_NAME=""
|
|
ENV STATIC_FILES_MIRROR=""
|
|
|
|
# Install pip requirements
|
|
COPY requirements.txt .
|
|
RUN python -m pip install -r requirements.txt
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
RUN chmod u+x ./entrypoint.sh
|
|
ENTRYPOINT ["./entrypoint.sh"]
|