25 lines
570 B
Docker
25 lines
570 B
Docker
FROM python:3.11-slim-bookworm
|
|||
|
|
|
||
|
|
ARG PASSWORD
|
||
|
|
|
||
|
|
WORKDIR /opt
|
||
|
|
|
||
|
|
COPY apt-insecure.conf /etc/apt/apt.conf.d/99gemastik-insecure
|
||
|
|
RUN apt-get -o Acquire::AllowInsecureRepositories=true update
|
||
|
|
RUN apt-get -y --allow-unauthenticated install -y nano openssh-server curl
|
||
|
|
|
||
|
|
RUN echo root:${PASSWORD} | chpasswd
|
||
|
|
RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
|
||
|
|
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
||
|
|
RUN service ssh start
|
||
|
|
|
||
|
|
COPY src/ .
|
||
|
|
|
||
|
|
RUN mkdir -p uploads/
|
||
|
|
RUN pip install -r requirements.txt
|
||
|
|
RUN chmod +x ./start.sh
|
||
|
|
|
||
|
|
EXPOSE 80
|
||
|
|
EXPOSE 22
|
||
|
|
|
||
|
|
CMD ./start.sh
|