Skip to content

Commit 2df10f9

Browse files
authored
Merge pull request #149 from saksham-gera/sslAndARMSupport
Fixing SSL Certificates errors and Support for ARM Architecture
2 parents c8cd06e + f7e4646 commit 2df10f9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

fri/Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
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
7+
28
COPY requirements.txt /tmp/requirements.txt
3-
RUN pip install -r /tmp/requirements.txt
9+
RUN pip install -r /tmp/requirements.txt
10+
411
WORKDIR /fri
5-
COPY server /fri
12+
COPY server /fri
13+
614
USER root
7-
RUN useradd fri && chown -R fri /fri
15+
RUN useradd fri && chown -R fri /fri
16+
817
USER fri
918
CMD ["gunicorn", "--timeout=180", "--workers=4", "--bind=0.0.0.0:8080", "--access-logfile=-", "main:app"]

0 commit comments

Comments
 (0)