-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (28 loc) · 942 Bytes
/
Dockerfile
File metadata and controls
32 lines (28 loc) · 942 Bytes
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
ARG CODENAME
FROM registry.drycc.cc/drycc/base:${CODENAME}
ARG DRYCC_UID=1001 \
DRYCC_GID=1001 \
DRYCC_HOME_DIR=/data \
RUSTFS_VERSION="1.0.0-alpha.73" \
OPENTELEMETRY_COLLECTOR_VERSION=0.141.0
COPY rootfs/etc/otelcol /etc/otelcol
RUN groupadd drycc --gid ${DRYCC_GID} \
&& useradd drycc -u ${DRYCC_UID} -g ${DRYCC_GID} -s /bin/bash -m -d ${DRYCC_HOME_DIR} \
&& install-packages dnsutils \
&& install-stack rustfs $RUSTFS_VERSION \
&& install-stack opentelemetry-collector $OPENTELEMETRY_COLLECTOR_VERSION \
&& rm -rf \
/usr/share/doc \
/usr/share/man \
/usr/share/info \
/usr/share/locale \
/var/lib/apt/lists/* \
/var/log/* \
/var/cache/debconf/* \
/etc/systemd \
/lib/lsb \
/lib/udev \
/usr/lib/`echo $(uname -m)`-linux-gnu/gconv/IBM* \
/usr/lib/`echo $(uname -m)`-linux-gnu/gconv/EBC* \
&& mkdir -p /usr/share/man/man{1..8}
USER ${DRYCC_UID}