-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
48 lines (39 loc) · 1.8 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM debian:bookworm-slim
LABEL maintainer="Tweakstreet Docker Maintainers <[email protected]>"
ENV TS_GID 1001
ENV TS_UID 1001
ENV TS_VERSION 1.22.6
ENV TS_HOME /home/tweakstreet
ENV TS_LOCATION /opt/tweakstreet
ENV TS_SHA256 05688534e13ad98c1c402e49ab5f7e065737cdb07a76de3601b053b6d67432f7
ENV TERM xterm-256color
RUN set -x \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y bash ca-certificates curl \
&& rm -rf /var/lib/apt/lists/* \
&& addgroup --gid "${TS_GID}" tweakstreet \
&& adduser --system --home /home/tweakstreet --ingroup tweakstreet --gecos "tweakstreet user" --shell /bin/bash --uid "${TS_UID}" tweakstreet \
&& mkdir -p "${TS_HOME}/.tweakstreet/drivers" \
&& mkdir -p "${TS_LOCATION}" \
&& chown -R tweakstreet:tweakstreet "${TS_LOCATION}" \
&& mkdir -p "/app" \
&& chown tweakstreet:tweakstreet /app
USER tweakstreet
SHELL ["/bin/bash", "-c"]
RUN curl --output "${TS_LOCATION}/portable.tar.gz" "https://updates.tweakstreet.io/updates/Tweakstreet-${TS_VERSION}-portable.tar.gz" \
&& echo "* Downloaded tweakstreet archive" \
&& ls -la "${TS_LOCATION}" \
&& echo "${TS_SHA256} *portable.tar.gz" > "${TS_LOCATION}/SHA256SUMS" \
&& echo "* Checksum: " \
&& cat "${TS_LOCATION}/SHA256SUMS" \
&& echo "* Checking Checksum" \
&& cd "${TS_LOCATION}" && sha256sum -c SHA256SUMS 2>&1 | grep OK \
&& echo "* Extracting archive" \
&& cd "${TS_LOCATION}" \
&& tar --strip-components=1 -xzf portable.tar.gz Tweakstreet-${TS_VERSION}-portable/bin \
&& echo "* Removing archive" \
&& rm portable.tar.gz
ENV PATH "${TS_LOCATION}/bin:$PATH"
COPY docker-entrypoint.sh "${TS_LOCATION}/"
ENTRYPOINT ["/opt/tweakstreet/docker-entrypoint.sh"]
CMD ["engine.sh", "--help"]