ContainersWorkspace/snowflake/Dockerfile

23 lines
663 B
Text
Raw Normal View History

2023-04-23 18:20:41 +00:00
FROM registry.fedoraproject.org/fedora:38
2023-03-18 18:14:16 +00:00
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 && \
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 && \
mv /snowflake/proxy/proxy /usr/bin/proxy && \
cd / && \
rm -rf /snowflake /root/* && \
chown snowflake.snowflake /usr/bin/proxy
USER snowflake
ENTRYPOINT ["/usr/bin/proxy"]