Skip to content

Commit fd293ac

Browse files
committed
Update Dockerfile
1 parent 6286e08 commit fd293ac

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ARG PYTHON
22
FROM python:3.8
33

4-
WORKDIR /jinja101
5-
RUN useradd -m jinja101
4+
WORKDIR /playground
5+
RUN useradd -m iac
66

77
ENV 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

2927
EXPOSE 5000/tcp
3028

0 commit comments

Comments
 (0)