various updates
This commit is contained in:
parent
a276eebb22
commit
8c86d9aaf3
4 changed files with 15 additions and 19 deletions
|
@ -1,21 +1,20 @@
|
|||
FROM registry.fedoraproject.org/fedora:39
|
||||
FROM registry.fedoraproject.org/fedora-minimal
|
||||
|
||||
RUN useradd -u 1423 -m -s '/bin/bash' -U snowflake
|
||||
ENV TZ=Europe/Warsaw
|
||||
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
|
||||
dnf clean all && \
|
||||
dnf install -y git golang && \
|
||||
RUN dnf5 install -y shadow-utils git golang && \
|
||||
useradd -u 1423 -m -s '/bin/bash' -U snowflake && \
|
||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
|
||||
git clone https://git.torproject.org/pluggable-transports/snowflake.git && \
|
||||
cd snowflake/proxy && \
|
||||
go build && \
|
||||
dnf remove -y golang git && \
|
||||
dnf -y autoremove && \
|
||||
dnf -y clean all && \
|
||||
rpm -e --nodeps systemd && \
|
||||
dnf5 remove -y golang git shadow-utils && \
|
||||
dnf5 -y autoremove && \
|
||||
dnf5 -y clean all && \
|
||||
mv /snowflake/proxy/proxy /usr/bin/proxy && \
|
||||
cd / && \
|
||||
rm -rf /snowflake /root/* && \
|
||||
chown snowflake.snowflake /usr/bin/proxy
|
||||
chown snowflake:snowflake /usr/bin/proxy
|
||||
|
||||
USER snowflake
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue