ContainersWorkspace/snowflake/Containerfile

22 lines
712 B
Text
Raw Normal View History

2024-03-20 21:30:09 +00:00
FROM registry.fedoraproject.org/fedora-minimal
2023-03-18 18:14:16 +00:00
ENV TZ=Europe/Warsaw
2024-03-20 21:30:09 +00:00
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 && \
2023-03-18 18:14:16 +00:00
git clone https://git.torproject.org/pluggable-transports/snowflake.git && \
cd snowflake/proxy && \
go build && \
2024-03-20 21:30:09 +00:00
rpm -e --nodeps systemd && \
dnf5 remove -y golang git shadow-utils && \
dnf5 -y autoremove && \
dnf5 -y clean all && \
2023-03-18 18:14:16 +00:00
mv /snowflake/proxy/proxy /usr/bin/proxy && \
cd / && \
rm -rf /snowflake /root/* && \
2024-03-20 21:30:09 +00:00
chown snowflake:snowflake /usr/bin/proxy
2023-03-18 18:14:16 +00:00
USER snowflake
ENTRYPOINT ["/usr/bin/proxy"]