-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 774 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 774 Bytes
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
FROM centos:8
LABEL maintainer="Lauro Gomes <laurobmb@gmail.com>"
LABEL www.laurodepaula.com.br="10.0.0-beta"
LABEL vendor="Bot Python"
ARG TOKEN=868879441:AAEEG-7rd7SmeSWZ3aZpJ6qS4Xc
ENV TOKEN="${TOKEN}"
ARG NOMEBOT=Magali
ENV NOMEBOT="${NOMEBOT}"
ADD app.py /bot/
COPY arquivos/* /bot/arquivos/
COPY imagens/* /bot/imagens/
COPY requirements.txt /bot/
WORKDIR /bot/
RUN dnf -y install python3
RUN dnf -y install python3-pip.noarch
RUN dnf install glibc-langpack-pt -y
RUN dnf clean all
ENV LANG pt_BR.utf8
ENV LANGUAGE pt_BR.utf8
ENV LC_ALL pt_BR.utf8
ENV TZ=America/Recife
RUN python3 --version
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN python -m pip install --upgrade pip
RUN python -m pip install -r requirements.txt
ENTRYPOINT ["python", "/bot/app.py"]