Initial setup

This commit is contained in:
Richard Bronkhorst 2023-06-05 22:16:29 +02:00
commit c02ab63c75
5 changed files with 23 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
__pycache__
data

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
__pycache__
data

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3
RUN useradd -ms /bin/bash user
RUN mkdir /data && chown user /data
USER user
ADD --chown=user requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip3 install -r requirements.txt
ADD --chown=user . /app
VOLUME /data
ENTRYPOINT [ "/app/commander.py"]
CMD ["-s", "/data/store.pickle"]

6
commander.py Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import logging
import argparse
if __name__ == '__main__':
print('hi!')

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
requests
sqlalchemy