-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
54 lines (41 loc) · 1.42 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
#FROM registry.redhat.io/rhel8
FROM docker.io/library/fedora:37
LABEL Maintainer="Pablo Rocamora <pablojoserocamora@GMAIL.com>"
LABEL Description="Fedora MiniTrue"
LABEL Version="1.0"
LABEL License=GPLv2
# docker builder prune
# docker system prune -a
USER root
WORKDIR /root
RUN chmod 755 /root
# mlocate
RUN dnf upgrade -y && \
dnf install -y vim sudo curl wget expect tmux procps man-db yum-utils zsh openssh-server sqlite \
util-linux-user iproute initscripts glibc-langpack-en python3 git dnf-plugins-core iputils \
net-tools unzip bind-utils tree jq nc nmap texlive-collection-latexrecommended gcc python3 \
texlive-datetime texlive-tcolorbox texlive-smartdiagram texlive-zed-csp python3-devel python3-pip && \
dnf clean all
# Set the locale
#RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
# locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
#localedef -i en_US -f UTF-8 en_US.UTF-8
RUN sed -i 's/^LANG=.*/LANG="en_US.utf8"/' /etc/locale.conf
RUN echo 'root:toor' | chpasswd
RUN chsh -s $(command -v zsh) root
COPY requirements.txt ./
RUN pip3 install -r ./requirements.txt
COPY *.py ./
RUN ls ./*
COPY resources ./
COPY database.db.sql ./
RUN sqlite3 database.db < database.db.sql
EXPOSE 22
ENV TG_ADMIN=1123123
ENV TG_BOT_TOKEN=sdfsdfsdfsdfsdfsdfsdf
ENV TG_BOT_DEBUG_TOKEN=sdfsdfsdfsdfsdfsdfsdf
COPY ./entrypoint.sh /root
ENTRYPOINT ["./entrypoint.sh"]