Skip to content

Commit bc6567a

Browse files
committed
chore(controller): change env to build arg
1 parent 3858569 commit bc6567a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

rootfs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG CODENAME
22
FROM registry.drycc.cc/drycc/base:${CODENAME}
33

4-
ENV DRYCC_UID=1001 \
4+
ARG DRYCC_UID=1001 \
55
DRYCC_GID=1001 \
66
DRYCC_HOME_DIR=/workspace \
77
PYTHON_VERSION="3.13"

rootfs/Dockerfile.test

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
ARG CODENAME
22
FROM registry.drycc.cc/drycc/base:${CODENAME}
33

4-
ARG DRYCC_HOME_DIR=/workspace
5-
6-
COPY requirements.txt ${DRYCC_HOME_DIR}/requirements.txt
7-
COPY dev_requirements.txt ${DRYCC_HOME_DIR}/dev_requirements.txt
8-
9-
ENV PGDATA="/opt/drycc/postgresql/data" \
4+
ARG DRYCC_HOME_DIR=/workspace \
105
PYTHON_VERSION="3.13" \
116
VALKEY_VERSION="8.1.3" \
127
POSTGRES_VERSION="17.6" \
138
GOSU_VERSION="1.18"
149

10+
COPY requirements.txt ${DRYCC_HOME_DIR}/requirements.txt
11+
COPY dev_requirements.txt ${DRYCC_HOME_DIR}/dev_requirements.txt
12+
13+
ENV PGDATA="/opt/drycc/postgresql/data"
14+
1515
RUN buildDeps='gcc rustc cargo libffi-dev musl-dev openssl'; \
1616
install-packages mercurial ca-certificates git inotify-tools $buildDeps \
1717
&& curl -SsL https://cli.codecov.io/latest/$([ $(dpkg --print-architecture) == "arm64" ] && echo linux-arm64 || echo linux)/codecov -o /usr/local/bin/codecov \

0 commit comments

Comments
 (0)