mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
chore(inference): follow the pattern of splitting base-env and prod stage 🐋
This commit is contained in:
@@ -19,7 +19,7 @@ RUN --mount=type=cache,target=/var/cache/pip \
|
||||
|
||||
|
||||
|
||||
FROM python:3.10-alpine3.17 as dev
|
||||
FROM python:3.10-alpine3.17 as base-env
|
||||
ARG APP_USER
|
||||
ARG APP_RELATIVE_PATH
|
||||
|
||||
@@ -43,4 +43,8 @@ COPY --chown="${APP_USER}:${APP_USER}" --from=build /build/lib
|
||||
COPY --chown="${APP_USER}:${APP_USER}" ./${APP_RELATIVE_PATH}/__main__.py .
|
||||
|
||||
|
||||
|
||||
FROM base-env as prod
|
||||
|
||||
|
||||
CMD python3 __main__.py --backend-url "${BACKEND_URL}"
|
||||
|
||||
Reference in New Issue
Block a user