File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ RUN export GO111MODULE=on \
88
99FROM docker.io/drycc/base:bullseye
1010
11- ARG DRYCC_UID=1001
12- ARG DRYCC_GID=1001
13- ARG DRYCC_HOME_DIR=/workspace
11+ ENV DRYCC_UID=1001 \
12+ DRYCC_GID=1001 \
13+ DRYCC_HOME_DIR=/workspace \
14+ MC_VERSION="2022.02.26.03.58.31" \
15+ JQ_VERSION="1.6"
1416
1517RUN groupadd drycc --gid ${DRYCC_GID} \
1618 && useradd drycc -u ${DRYCC_UID} -g ${DRYCC_GID} -s /bin/bash -m -d ${DRYCC_HOME_DIR}
@@ -20,17 +22,14 @@ COPY rootfs/etc/ssh /etc/ssh/
2022COPY rootfs/docker-entrypoint.sh /docker-entrypoint.sh
2123COPY --from=build /usr/local/bin/boot /usr/bin/boot
2224
23- ENV MC_VERSION="2022.02.26.03.58.31" \
24- JQ_VERSION="1.6"
25-
2625RUN install-packages git openssh-server coreutils xz-utils tar \
2726 && install-stack mc $MC_VERSION \
2827 && install-stack jq $JQ_VERSION \
2928 && mkdir -p /var/run/sshd \
3029 && rm -rf /etc/ssh/ssh_host* \
3130 && chmod +x /bin/create_bucket /bin/normalize_storage /docker-entrypoint.sh
3231
33- USER drycc
32+ USER ${DRYCC_UID}
3433WORKDIR ${DRYCC_HOME_DIR}
3534
3635ENTRYPOINT ["init-stack" , "/docker-entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments