Explorar el Código

dockerfile

master
feing hace 1 año
padre
commit
b4a3f30cde
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Dockerfile

+ 1
- 1
Dockerfile Ver fichero





# 创建一个非 root 用户 # 创建一个非 root 用户
RUN adduser --disabled-password --gecos '' appuser
RUN useradd -m -s /bin/bash appuser


# 将工作目录的所有权更改为新用户 # 将工作目录的所有权更改为新用户
RUN chown -R appuser:appuser /app RUN chown -R appuser:appuser /app

Cargando…
Cancelar
Guardar