This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.9-slim | |
| ENV USER=nikita | |
| ENV HOME=/home/$USER | |
| # Add user to system | |
| RUN useradd -m -u 1000 $USER | |
| WORKDIR $HOME/app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Select base image (can be ubuntu, python, shiny etc) | |
| FROM python:3.11-slim | |
| # Create user name and home directory variables. | |
| # The variables are later used as $USER and $HOME. | |
| ENV USER=username | |
| ENV HOME=/home/$USER | |
| # Add user to system | |
| RUN useradd -m -u 1000 $USER |
OlderNewer