Skip to content

Commit d0fdcdf

Browse files
committed
updated admin Dockerfile
1 parent 010ce24 commit d0fdcdf

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

docker/admin.Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@ COPY pyproject.toml .
2020
COPY poetry.lock .
2121
RUN poetry export -f requirements.txt --without-hashes | pip install $PIP_ARGS -r /dev/stdin
2222

23-
# Copy scripts and source code
23+
# Copy source code
2424
COPY ./src/alembic.ini $APP_HOME/alembic.ini
25-
COPY ./scripts/admin.sh $APP_HOME/admin.sh
2625
COPY ./src/admin_portal $APP_HOME/admin_portal
2726
COPY ./src/common $APP_HOME/common
2827

2928
# create the app user and chown workdir to the app user
3029
RUN adduser -u 5678 --system --disabled-password --gecos "" app && chown -R app $APP_HOME
3130
USER app
3231

33-
ENV APP_MODE="DIAL"
3432
ENV WEB_CONCURRENCY=1
33+
ENV PYDANTIC_V2=True
3534

36-
CMD ["sh", "admin.sh"]
35+
CMD ["sh", "admin_portal/admin.sh"]

scripts/admin.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)