ContainersWorkspace/snowflake/Containerfile
Szwendacz 01192ccecd
All checks were successful
Build images / build-images-amd64 (push) Successful in 10m31s
Build images / build-images-arm64 (push) Successful in 50m21s
Build images / update-images-manifests (push) Successful in 30s
Update snowflake/Containerfile
2025-06-09 10:50:56 +00:00

22 lines
751 B
Docker

FROM registry.fedoraproject.org/fedora-minimal
ENV TZ=Europe/Warsaw
# install also tor, for geoip data
RUN dnf5 install -y shadow-utils git golang tor && \
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 && \
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
USER snowflake
ENTRYPOINT ["/usr/bin/proxy"]