Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Feature: Containerized for deployment #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Using base image provided by nginx unit
FROM nginx/unit:1.22.0-python3.9
# Alternatively you can use different tags from https://hub.docker.com/r/nginx/unit

WORKDIR /rem

COPY main.py /rem/main.py
COPY templates /rem/templates
COPY README.md /rem/README.md
COPY requirements.txt /rem/requirements.txt
COPY readme_tool /rem/readme_tool
COPY setup.py /rem/setup.py
COPY nginx_config.json /docker-entrypoint.d/config.json
COPY . /rem
RUN chmod 775 intake.json
RUN python setup.py develop
17 changes: 17 additions & 0 deletions nginx_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"listeners": {
"*:8000": {
"pass": "applications/fastapi"
}
},

"applications": {
"fastapi": {
"type": "python 3.9",
"path": "/rem",
"home": "/usr/local",
"module": "main",
"callable": "app"
}
}
}