Skip to content
Merged
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
17 changes: 13 additions & 4 deletions fri/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
FROM centos/python-36-centos7
FROM python:3.6-slim

RUN apt-get update && apt-get install -y ca-certificates \
&& update-ca-certificates \
&& python3 -m ensurepip --default-pip \
&& pip install --upgrade pip setuptools wheel

COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

WORKDIR /fri
COPY server /fri
COPY server /fri

USER root
RUN useradd fri && chown -R fri /fri
RUN useradd fri && chown -R fri /fri

USER fri
CMD ["gunicorn", "--timeout=180", "--workers=4", "--bind=0.0.0.0:8080", "--access-logfile=-", "main:app"]