diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0cd01c3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git/ +.idea/ +*.iml +venv/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65c6f87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea/ +*.iml +venv/ +__pycache__/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6694d0e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.9-slim-bullseye +RUN useradd mariotte +ENV APP=/home/mariotte/app +WORKDIR $APP +COPY requirements.txt requirements.txt +RUN pip3 install -r requirements.txt +COPY . . +CMD ["python3", "main.py"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6caca67 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2023 Erik Perkins + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..61c5df3 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +## Mariotte +This is a simple containerized Python application. diff --git a/main.py b/main.py new file mode 100644 index 0000000..131558e --- /dev/null +++ b/main.py @@ -0,0 +1,4 @@ +if __name__ == "__main__": + while True: + sleep(1) + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29