Compare commits

..

No commits in common. "b622342887699153199db598d3a2aa98a5fd4ff5" and "783b8e66e2d45c2442eb8e68b2f22109fb7ade0e" have entirely different histories.

4 changed files with 20 additions and 15 deletions

View file

@ -1,4 +1,4 @@
FROM registry.fedoraproject.org/fedora-minimal FROM registry.fedoraproject.org/fedora-minimal:39
USER root USER root

View file

@ -1,4 +1,4 @@
FROM registry.fedoraproject.org/fedora-minimal FROM registry.fedoraproject.org/fedora:39
ENV HISTSIZE=10000 ENV HISTSIZE=10000
ENV HISTTIMEFORMAT="%d/%m/%y %T " ENV HISTTIMEFORMAT="%d/%m/%y %T "
@ -19,13 +19,16 @@ ENV GENERAL_PKGS="\
ENV APPS="\ ENV APPS="\
chromium \ chromium \
firefox" firefox \
librewolf"
# install dependencies and basic apps # install dependencies and basic apps
RUN dnf5 install -y \ RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --add-repo https://rpm.librewolf.net/librewolf-repo.repo && \
dnf install -y \
${GENERAL_PKGS} \ ${GENERAL_PKGS} \
${APPS} \ ${APPS} \
&& dnf5 clean all && dnf clean all
RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc

View file

@ -1,4 +1,4 @@
FROM registry.fedoraproject.org/fedora-minimal FROM registry.fedoraproject.org/fedora-minimal:39
ENV VIRTUAL_ENV=/venv ENV VIRTUAL_ENV=/venv
ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@ -47,4 +47,4 @@ WORKDIR /jupyter
ENTRYPOINT [ "tini" ] ENTRYPOINT [ "tini" ]
CMD [ "jupyter", "--", "lab", "--allow-root", "--no-browser", "--autoreload" ] CMD [ "jupyter", "--", "notebook", "--allow-root", "--no-browser", "--autoreload", "--ip", "0.0.0.0" ]

View file

@ -1,19 +1,21 @@
FROM registry.fedoraproject.org/fedora-minimal FROM registry.fedoraproject.org/fedora:39
RUN useradd -u 1423 -m -s '/bin/bash' -U snowflake
ENV TZ=Europe/Warsaw ENV TZ=Europe/Warsaw
RUN dnf5 install -y shadow-utils git golang && \
useradd -u 1423 -m -s '/bin/bash' -U snowflake && \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ dnf clean all && \
dnf install -y git golang && \
git clone https://git.torproject.org/pluggable-transports/snowflake.git && \ git clone https://git.torproject.org/pluggable-transports/snowflake.git && \
cd snowflake/proxy && \ cd snowflake/proxy && \
go build && \ go build && \
dnf5 remove -y golang git shadow-utils && \ dnf remove -y golang git && \
dnf5 -y autoremove && \ dnf -y autoremove && \
dnf5 -y clean all && \ dnf -y clean all && \
mv /snowflake/proxy/proxy /usr/bin/proxy && \ mv /snowflake/proxy/proxy /usr/bin/proxy && \
cd / && \ cd / && \
rm -rf /snowflake /root/* && \ rm -rf /snowflake /root/* && \
chown snowflake:snowflake /usr/bin/proxy chown snowflake.snowflake /usr/bin/proxy
USER snowflake USER snowflake