forked from psono/psono-fileserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileCentos7
41 lines (37 loc) · 1.23 KB
/
DockerfileCentos7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# PSONO Dockerfile for CentOS 7
FROM psono-docker.jfrog.io/centos:centos7
LABEL maintainer="Sascha Pfeiffer <sascha.pfeiffer@psono.com>"
COPY . /root/
WORKDIR /root
RUN mkdir -p /root/.pip && \
echo '[global]' >> /root/.pip/pip.conf && \
echo 'index-url = https://psono.jfrog.io/psono/api/pypi/pypi/simple' >> /root/.pip/pip.conf && \
yum -y update && \
yum -y install https://centos7.iuscommunity.org/ius-release.rpm && \
yum -y update && \
yum -y install \
gcc \
haveged \
libffi-devel \
openssl-devel \
python3-3.6.8 \
python3-devel-3.6.8 \
python3-pip-9.0.3 && \
pip3.6 install -r requirements.txt && \
pip3.6 install uwsgi && \
pip3.6 install typing && \
mkdir -p /root/.psono_fileserver && \
cp /root/configs/mainconfig/settings.yaml /root/.psono_fileserver/settings.yaml && \
sed -i s,path/to/psono-fileserver,root,g /root/.psono_fileserver/settings.yaml && \
yum remove -y \
python3-pip-9.0.3 && \
yum clean all && \
rm -Rf \
/root/requirements.txt \
/root/psono/static \
/root/var \
/root/.cache \
/tmp/* \
/var/tmp/*
EXPOSE 80
CMD ["/bin/sh", "/root/configs/docker/cmd.sh"]