From 2a3c74e808103f2d50a49187dbf47f827edcce06 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 21 Feb 2023 11:53:02 -0600 Subject: [PATCH] Adding Git and Docker files --- .dockerignore | 7 +++++++ .gitignore | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 8 ++++++++ 3 files changed, 71 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7c7dcae --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.gitignore +Lib +Scripts +pyvenv.cfg +database_migration.py +Include +resources \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4448bee --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +# These are some examples of commonly ignored file patterns. +# You should customize this list as applicable to your project. +# Learn more about .gitignore: +# https://www.atlassian.com/git/tutorials/saving-changes/gitignore + +# Node artifact files +node_modules/ +dist/ + +# Compiled Java class files +*.class + +# Compiled Python bytecode +*.py[cod] + +# Log files +*.log + +# Package files +*.jar + +# Maven +target/ +dist/ + +# JetBrains IDE +.idea/ + +# Unit test reports +TEST*.xml + +# Generated by MacOS +.DS_Store + +# Generated by Windows +Thumbs.db + +# Applications +*.app +*.exe +*.war + +# Large media files +*.mp4 +*.tiff +*.avi +*.flv +*.mov +*.wmv + +# Project Specific +Lib/ +Scripts/ +Include/ +pyvenv.cfg + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e84d3d1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8 + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . \ No newline at end of file