Docker compose and README
This commit is contained in:
@@ -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/
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
requests
|
||||
Reference in New Issue
Block a user