Commit 5357999a429d5f5feef901202208765cb5c52955

Authored by Alexis Koralewski
1 parent c49d7824
Exists in dev

add Dockerfile

Showing 1 changed file with 20 additions and 0 deletions   Show diff stats
Dockerfile 0 → 100644
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
  1 +FROM python:3.6.9
  2 +
  3 +RUN apt-get update && apt-get install -y \
  4 + default-mysql-client
  5 +RUN pip install --upgrade pip
  6 +# installing click on the image to prevent error on the first execution of the installation script
  7 +RUN pip install click
  8 +
  9 +# adding new user (pyros_user) and creating his home folder
  10 +RUN useradd --create-home --shell /bin/bash pyros_user
  11 +
  12 +# Create the work dir and set permissions as pyros_user
  13 +RUN mkdir -p /home/pyros_user/app/ && chown -R pyros_user:pyros_user /home/pyros_user/app
  14 +WORKDIR /home/pyros_user/app
  15 +
  16 +# switch from root to pyros_user
  17 +USER pyros_user
  18 +
  19 +# copy local host machine files to image
  20 +COPY --chown=pyros_user:pyros_user . .
0 \ No newline at end of file 21 \ No newline at end of file