Skip to content

Instantly share code, notes, and snippets.

View churnikov's full-sized avatar
🤔
I'm Nikita by the way

Nikita Churikov churnikov

🤔
I'm Nikita by the way
View GitHub Profile
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
# 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