Docker compose and README

This commit is contained in:
Manuel Hude
2021-01-16 17:45:08 +01:00
parent 5012c8943f
commit c7e58cad59
10 changed files with 22111 additions and 26 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.8-slim
ENV PYTHONUNBUFFERED 1
RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN python -m pip install --upgrade pip
ENV PATH="/opt/venv/bin:$PATH"
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
+1 -1
View File
@@ -36,7 +36,7 @@ def send_image(identifier, image_path, metadata_payload):
return False
file_payload = file_encoded_b64.decode('utf-8')
baseurl = "http://127.0.0.1:8000"
baseurl = "http://middleware:8000"
post_url = "/image/post"
body = build_post_payload(identifier, metadata_payload, file_payload)
+1
View File
@@ -0,0 +1 @@
requests