Skip to content

Commit da6f3ee

Browse files
author
Roy
committed
chore(Dockerfile): 调整Docker镜像构建配置
1 parent 67ba14b commit da6f3ee

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ RUN mkdir -p /etc/itsdangerous/
2222
RUN mkdir -p /var/log/itsdangerous/
2323
RUN mkdir -p /tmp/artifacts/
2424
COPY etc /etc/itsdangerous
25-
RUN addgroup --system --gid 6000 apps && useradd --uid 6001 --gid 6000 app
26-
RUN chown -R app:apps /etc/itsdangerous && chown -R app:apps /var/log/itsdangerous && chown -R app:apps /data/itsdangerous && chown -R app:apps /scripts
27-
RUN chmod -R 755 /etc/itsdangerous && chmod -R 755 /var/log/itsdangerous && chmod -R 755 /data/itsdangerous && chmod -R 755 /scripts
28-
USER app
2925
COPY build/start_all.sh /scripts/start_all.sh
3026
RUN chmod +x /scripts/start_all.sh
27+
RUN addgroup --system --gid 6000 apps && useradd --uid 6001 --gid 6000 app
28+
RUN chown -R app:apps /etc/itsdangerous && chown -R app:apps /var/log/itsdangerous && chown -R app:apps /scripts
29+
RUN chmod -R 755 /etc/itsdangerous && chmod -R 755 /var/log/itsdangerous && chmod -R 755 /scripts
30+
USER app
31+
3132
CMD ["/bin/sh","-c","/scripts/start_all.sh"]

0 commit comments

Comments
 (0)