mirror of
https://github.com/caronc/apprise-api.git
synced 2024-11-07 16:54:10 +01:00
23 lines
504 B
Plaintext
23 lines
504 B
Plaintext
# pull official base image
|
|
FROM python:3.8.0-alpine
|
|
|
|
# set work directory
|
|
WORKDIR /opt/apprise
|
|
|
|
# set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV APPRISE_CONFIG_DIR /var/apprise/config
|
|
|
|
# install dependencies
|
|
RUN pip install --upgrade pip
|
|
COPY ./requirements.txt etc/requirements.txt
|
|
RUN pip install -r etc/requirements.txt \
|
|
gunicorn
|
|
|
|
# copy project
|
|
COPY apprise_api/ webapp
|
|
|
|
EXPOSE 8000
|
|
CMD ["gunicorn", "-c", "/opt/apprise/webapp/gunicorn.conf.py", "core.wsgi"]
|