@munhitsu
The USER command is useful when all RUN statements can be executed as that user. But what about when specific RUN commands need to be done under specific users? Can the USER command be used more than once in a Dockerfile?
Eg:
USER root
RUN echo 'export ORACLE_SID=XE' >> /etc/bash.bashrc
@munhitsu
The USER command is useful when all RUN statements can be executed as that user. But what about when specific RUN commands need to be done under specific users? Can the USER command be used more than once in a Dockerfile?
Eg:
USER root
RUN echo 'export ORACLE_SID=XE' >> /etc/bash.bashrc
USER oracle
RUN sqplus @my_schema.sql