newContainer
This commit is contained in:
parent
165d56ab74
commit
3ab09941f8
|
@ -0,0 +1,24 @@
|
|||
FROM python:3
|
||||
|
||||
#RUN apt-get update && \
|
||||
# apt-get install -y python3-pip python3-plotly && \
|
||||
# apt-get clean
|
||||
#
|
||||
#CMD ["echo", "wut"]
|
||||
|
||||
#RUN apt-get update && \
|
||||
# apt-get install -y python3-pip python3-plotly python3-pandas && \
|
||||
# apt-get clean
|
||||
|
||||
RUN mkdir -p /app/
|
||||
RUN mkdir -p /config/
|
||||
|
||||
COPY requirements.txt /app/
|
||||
|
||||
RUN chown -R 1000:1000 /app/
|
||||
RUN chown -R 1000:1000 /config/
|
||||
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
#CMD ["python3", "/app/parse.py"]
|
||||
CMD ["python3", "-u", "/config/core.py"]
|
|
@ -0,0 +1,2 @@
|
|||
schedule==1.2.0
|
||||
requests==2.25.1
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/python3
|
||||
|
||||
print("hi")
|
|
@ -0,0 +1,3 @@
|
|||
# Python
|
||||
|
||||
A simple python docker container to execute python scripts
|
|
@ -0,0 +1,12 @@
|
|||
version: '3.4'
|
||||
services:
|
||||
expy:
|
||||
build:
|
||||
context: ./11_exPy/Conf/
|
||||
dockerfile: Dockerfile
|
||||
container_name: exPy
|
||||
environment:
|
||||
LOG_FILE: "/config/access.log"
|
||||
PYTHONUNBUFFERED: 1
|
||||
volumes:
|
||||
- ./11_exPy/Data/:/config/
|
Loading…
Reference in New Issue