47 lines
1.3 KiB
Docker
47 lines
1.3 KiB
Docker
FROM debian:sid-slim
|
|
WORKDIR /root
|
|
|
|
ARG PHPVERSION=7.4
|
|
SHELL ["/bin/bash", "-c"]
|
|
#Initial update packges
|
|
RUN apt update && apt upgrade -y
|
|
|
|
# Language setup
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
RUN apt install locales -y \
|
|
&& apt auto-remove -y \
|
|
&& apt clean -y
|
|
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
|
|
&& locale-gen
|
|
|
|
# Enable Backports
|
|
#RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' > /etc/apt/sources.list.d/bullseye-backports.list \
|
|
# && apt update
|
|
|
|
# Installing basic tools
|
|
RUN apt install bzip2 zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends \
|
|
&& apt auto-remove -y \
|
|
&& apt clean -y
|
|
|
|
# Platform-specific prerequisites to run python module
|
|
RUN apt install build-essential python3-dev libffi-dev \
|
|
python3-pip python3-setuptools sqlite3 \
|
|
libssl-dev virtualenv libjpeg-dev libxslt1-dev -y --no-install-recommends
|
|
|
|
RUN mkdir -p ~/synapse \
|
|
&& virtualenv -p python3 ~/env \
|
|
&& source ~/env/bin/activate \
|
|
&& pip install --upgrade pip \
|
|
&& pip install --upgrade setuptools \
|
|
&& pip install matrix-synapse
|
|
|
|
|
|
#autostart files
|
|
COPY buildfiles/auto_config.sh .
|
|
COPY buildfiles/start_services.sh .
|
|
RUN chmod +x auto_config.sh
|
|
RUN chmod +x start_services.sh
|
|
CMD ["./start_services.sh"]
|