-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (41 loc) · 1.21 KB
/
Copy pathDockerfile
File metadata and controls
49 lines (41 loc) · 1.21 KB
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
49
FROM ubuntu:noble-20250714
ENV DEBIAN_FRONTEND=noninteractive
ENV ACCEPT_EULA=y
RUN groupadd --gid 10001 hoop && \
useradd --uid 10001 --gid 10001 --no-create-home --shell /sbin/nologin hoop && \
mkdir -p /app && \
mkdir -p /opt/hoop/sessions && \
mkdir -p /opt/hoop/bin && \
apt-get update -y && \
apt-get install -y \
xz-utils \
locales \
tini \
openssh-client \
procps \
gettext-base \
curl \
tesseract-ocr \
tesseract-ocr-eng
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
COPY rootfs /
# SQL migrations are embedded in the gateway binary; the on-disk copy is
# kept for deployments that point MIGRATION_PATH_FILES at it.
COPY gateway/migrations/ /app/migrations/
COPY dist/binaries/ /tmp/
RUN tar -xf /tmp/hoop_*_$(uname -s)_$(uname -m).tar.gz -C /app/ && \
chown -R hoop:hoop /app /opt/hoop && \
chmod 755 /app/hoop* && \
rm -rf /tmp/* && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
EXPOSE 8009
EXPOSE 8010
EXPOSE 15432
ENV PATH="/app:${PATH}"
ENV PATH="/opt/hoop/bin:${PATH}"
USER hoop
ENTRYPOINT ["tini", "--"]