newContainer

This commit is contained in:
superUser 2023-08-11 23:09:07 -04:00
parent 165d56ab74
commit 3ab09941f8
5 changed files with 44 additions and 0 deletions

View File

@ -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"]

View File

@ -0,0 +1,2 @@
schedule==1.2.0
requests==2.25.1

View File

@ -0,0 +1,3 @@
#!/bin/python3
print("hi")

3
exPy/README.md Normal file
View File

@ -0,0 +1,3 @@
# Python
A simple python docker container to execute python scripts

12
exPy/docker-compose.yml Normal file
View File

@ -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/