ContainersWorkspace/snowflake/Containerfile
Maciej Lebiest bb1468170d
All checks were successful
Build images / build-images-arm64 (push) Successful in 11m34s
Build images / build-images-amd64 (push) Successful in 13m59s
Build images / update-images-manifests (push) Successful in 36s
Containerfiles, add rclone, rsync to toolboxes
2024-02-11 20:07:07 +01:00

22 lines
663 B
Docker

FROM registry.fedoraproject.org/fedora:39
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"]