mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Upgrading to python3 (#60)
* 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
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,14 +1,17 @@
|
||||
FROM python:2.7-alpine
|
||||
FROM python:3.7.2-alpine
|
||||
MAINTAINER Mitsuo Takaki <mitsuotakaki@gmail.com>
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt /usr/src/app/
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN python3.7 -m pip install --upgrade pip
|
||||
COPY requirements.txt ./
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY cachet_url_monitor/* /usr/src/app/cachet_url_monitor/
|
||||
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 ["python", "cachet_url_monitor/scheduler.py", "config/config.yml"]
|
||||
CMD ["python3.7", "./cachet_url_monitor/scheduler.py", "config/config.yml"]
|
||||
|
||||
Reference in New Issue
Block a user