Praneeth Yerrapragada commited on
Commit
6c394b1
·
1 Parent(s): b7b555e

build: fix Dockerfile to try to get the app to build

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,9 +1,15 @@
1
  FROM python:3.11 as build
2
 
3
- WORKDIR /app
 
 
 
 
4
 
5
  ENV PYTHONPATH=/app
6
 
 
 
7
  # Install Poetry
8
  RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
9
  cd /usr/local/bin && \
 
1
  FROM python:3.11 as build
2
 
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV HOME=/home/user \
6
+ PATH=/home/user/.local/bin:$PATH
7
+ WORKDIR $HOME/app
8
 
9
  ENV PYTHONPATH=/app
10
 
11
+ COPY --chown=user . $HOME/app
12
+
13
  # Install Poetry
14
  RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
15
  cd /usr/local/bin && \