1
0
mirror of https://gitlab.com/psono/psono-fileserver synced 2025-04-18 12:24:05 +03:00
psono-fileserver/DockerfileUbuntu
Sascha Pfeiffer 4b88990bae Upgraded to python 3.10
Signed-off-by: Sascha Pfeiffer <sascha.pfeiffer@esaqa.com>
2022-07-10 18:01:38 +02:00

36 lines
1.1 KiB
Plaintext

# PSONO Dockerfile for Ubuntu 22.04
FROM psono-docker.jfrog.io/ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
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 && \
apt-get update && \
apt-get install -y \
haveged \
libyaml-dev \
libpython3-dev \
libpq-dev \
libffi-dev \
libssl-dev \
python3-dev \
python3-pip \
python3-psycopg2 \
postgresql-client && \
pip3 install -r requirements.txt && \
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 && \
apt-get purge -y \
python3-pip && \
apt-get clean && \
rm -Rf /root/psono/static && \
rm -Rf /root/var && \
rm -Rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache
EXPOSE 80
CMD ["/bin/sh", "/root/configs/docker/cmd.sh"]