File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ARG PYTHON
22FROM python:3.8
33
4- WORKDIR /jinja101
5- RUN useradd -m jinja101
4+ WORKDIR /playground
5+ RUN useradd -m iac
66
77ENV PATH="/root/.poetry/bin:$PATH" \
88 PYTHONDONTWRITEBYTECODE=1 \
@@ -14,17 +14,15 @@ RUN apt-get update && apt-get install curl -y \
1414 && curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python \
1515 && poetry config virtualenvs.create false
1616
17- COPY --chown=jinja101:jinja101 pyproject.toml .
18- COPY --chown=jinja101:jinja101 poetry.lock .
17+ COPY --chown=iac:iac pyproject.toml .
18+ COPY --chown=iac:iac poetry.lock .
1919
2020# poetry does not support subdirectory yet
21- RUN pip install "git+https://github.com/StackStorm/st2-rbac-backend.git@master#egg=st2-rbac-backend" \
22- && pip install "git+https://github.com/StackStorm/st2.git@v3.3.0#subdirectory=st2common" \
23- && poetry install --no-dev --no-interaction --no-ansi
21+ RUN poetry install --no-dev --no-interaction --no-ansi
2422
25- COPY --chown=jinja101:jinja101 . .
23+ COPY --chown=iac:iac . .
2624
27- USER jinja101
25+ USER iac
2826
2927EXPOSE 5000/tcp
3028
You can’t perform that action at this time.
0 commit comments