mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
* Migrating to python 3.7.2, but docker image is not working properly. Need to continue investigating why it's not properly running. * Trying to fix the build and fixing logging in the scheduler initialization. * Trying to fix the build * Collecting test results * Fixing the dockerfile * Updating the development dependencies
18 lines
483 B
Docker
18 lines
483 B
Docker
FROM python:3.7.2-alpine
|
|
MAINTAINER Mitsuo Takaki <mitsuotakaki@gmail.com>
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN python3.7 -m pip install --upgrade pip
|
|
COPY requirements.txt ./
|
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY cachet_url_monitor/*.py /usr/src/app/cachet_url_monitor/
|
|
COPY setup.py /usr/src/app/
|
|
RUN python3.7 setup.py install
|
|
|
|
COPY config.yml /usr/src/app/config/
|
|
VOLUME /usr/src/app/config/
|
|
|
|
CMD ["python3.7", "./cachet_url_monitor/scheduler.py", "config/config.yml"]
|