-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
60 lines (50 loc) · 1.38 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
54
55
56
57
58
59
60
# Run Warsaw in a container
# Base docker image
FROM debian:bookworm-slim
LABEL maintainer "Fabio Rodrigues Ribeiro <[email protected]>"
ARG USER=ff
ARG GUID=1000
ARG LANG="pt_BR.UTF-8 UTF-8"
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install init systemd -y && \
apt-get install -y --no-install-recommends \
locales \
tzdata \
ca-certificates \
firefox-esr \
firefox-esr-l10n-pt-br \
libnss3-tools \
openssl \
procps \
python3-gpg \
python3-openssl \
python3 \
xauth \
zenity
# Setup locale
RUN echo ${LANG} > /etc/locale.gen \
&& locale-gen
# Downloading warsaw
RUN mkdir -p /src
ADD https://cloud.gastecnologia.com.br/bb/downloads/ws/warsaw_setup64.deb /src/GBPCEFwr64.deb
# Configuring the environment
RUN mkdir -p /home/${USER} \
&& groupadd -g ${GUID} -r ${USER} \
&& useradd -u ${GUID} -r -g ${USER} -G audio,video ${USER} -d /home/${USER} \
&& chown -R ${GUID}:${GUID} /home/${USER} \
&& mkdir -p /run/user/${GUID} \
&& chown ${GUID}:${GUID} /run/user/${GUID} \
&& chmod 700 /run/user/${GUID} \
# Cleanup
&& apt autoremove -y \
&& apt clean
RUN apt -y install /src/GBPCEFwr64.deb
COPY root.sh /usr/local/bin/
COPY startup.sh /usr/local/bin/
RUN chmod 700 /usr/local/bin/root.sh \
&& chmod 755 /usr/local/bin/startup.sh
# Add volume for receipts PDFs
VOLUME "/home/ff/Downloads"
# Autorun Firefox
ENTRYPOINT /usr/local/bin/root.sh