File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ ARG GID=1001
20
20
21
21
WORKDIR /opt/openlist/
22
22
23
- COPY --chmod=755 --from=builder /app/bin/openlist ./
24
- COPY --chmod=755 entrypoint.sh /entrypoint.sh
25
- RUN adduser -u ${UID} -g ${GID} -h /opt/openlist/data -D -s /bin/sh ${USER} \
26
- && chown -R ${UID}:${GID} /opt \
27
- && chown -R ${UID}:${GID} /entrypoint.sh
23
+ RUN addgroup -g ${GID} ${USER} && \
24
+ adduser -D -u ${UID} -G ${USER} ${USER} && \
25
+ mkdir -p /opt/openlist/data
26
+
27
+ COPY --from=builder --chmod=755 --chown=${UID}:${GID} /app/bin/openlist ./
28
+ COPY --chmod=755 --chown=${UID}:${GID} entrypoint.sh /entrypoint.sh
28
29
29
30
USER ${USER}
30
31
RUN /entrypoint.sh version
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ ARG GID=1001
10
10
11
11
WORKDIR /opt/openlist/
12
12
13
- COPY --chmod=755 /build/${TARGETPLATFORM}/openlist ./
14
- COPY --chmod=755 entrypoint.sh /entrypoint.sh
13
+ RUN addgroup -g ${GID} ${USER} && \
14
+ adduser -D -u ${UID} -G ${USER} ${USER} && \
15
+ mkdir -p /opt/openlist/data
15
16
16
- RUN adduser -u ${UID} -g ${GID} -h /opt/openlist/data -D -s /bin/sh ${USER} \
17
- && chown -R ${UID}:${GID} /opt \
18
- && chown -R ${UID}:${GID} /entrypoint.sh
17
+ COPY --chmod=755 --chown=${UID}:${GID} /build/${TARGETPLATFORM}/openlist ./
18
+ COPY --chmod=755 --chown=${UID}:${GID} entrypoint.sh /entrypoint.sh
19
19
20
20
USER ${USER}
21
21
RUN /entrypoint.sh version
You can’t perform that action at this time.
0 commit comments