Skip to content

Commit ede79b0

Browse files
authored
Merge pull request #2 from saksham-gera/main
Updated README.md and tested kong with postgres
2 parents 604a7c8 + 3f2aecd commit ede79b0

3 files changed

Lines changed: 168 additions & 125 deletions

File tree

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
FROM centos/python-36-centos7
1+
FROM python:3.6-slim
2+
3+
RUN apt-get update && apt-get install -y ca-certificates \
4+
&& update-ca-certificates \
5+
&& python3 -m ensurepip --default-pip \
6+
&& pip install --upgrade pip setuptools wheel
27

38
COPY requirements.txt /tmp/requirements.txt
49
RUN pip install -r /tmp/requirements.txt
510

611
WORKDIR /mediator
712
COPY server /mediator
813

9-
USER root
10-
1114
RUN useradd mediator && chown -R mediator /mediator
12-
1315
USER mediator
1416

15-
# CMD ["python", "Server.py"]
16-
CMD ["gunicorn", "--timeout=180", "--workers=20", "--bind=0.0.0.0:8081", "--access-logfile=-", "Server:app"]
17+
CMD ["gunicorn", "--timeout=180", "--workers=20", "--bind=0.0.0.0:8081", "--access-logfile=-", "Server:app"]

0 commit comments

Comments
 (0)