Initial setup
This commit is contained in:
commit
c02ab63c75
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
__pycache__
|
||||
data
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
__pycache__
|
||||
data
|
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
6
commander.py
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import logging
|
||||
import argparse
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('hi!')
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
requests
|
||||
sqlalchemy
|
Loading…
Reference in New Issue
Block a user