Add local/bin files to the container so pipenv works

This commit is contained in:
Devon Mackay 2018-08-07 13:41:38 -04:00
parent f2a4d59e0a
commit c995a232c6

View File

@ -7,12 +7,12 @@ ARG APP_USER=atst
ARG APP_GROUP=atat ARG APP_GROUP=atat
ARG APP_DIR=/opt/atat/atst ARG APP_DIR=/opt/atat/atst
ARG APP_PORT=8000 ARG APP_PORT=8000
ARG LOCAL_BIN_DIR=/usr/local/bin
ARG SITE_PACKAGES_DIR=/usr/local/lib/python3.6/site-packages ARG SITE_PACKAGES_DIR=/usr/local/lib/python3.6/site-packages
ENV APP_USER "${APP_USER}" ENV APP_USER "${APP_USER}"
ENV APP_GROUP "${APP_GROUP}" ENV APP_GROUP "${APP_GROUP}"
ENV APP_DIR "${APP_DIR}" ENV APP_DIR "${APP_DIR}"
ENV SKIP_PIPENV true
# Set port to open # Set port to open
EXPOSE "${APP_PORT}" EXPOSE "${APP_PORT}"
@ -28,6 +28,9 @@ CMD ["bash", "-c", "${APP_DIR}/script/uwsgi_server"]
# Copy installed python packages from the tester image # Copy installed python packages from the tester image
COPY --from=atst-tester:latest "${SITE_PACKAGES_DIR}" "${SITE_PACKAGES_DIR}" COPY --from=atst-tester:latest "${SITE_PACKAGES_DIR}" "${SITE_PACKAGES_DIR}"
# Copy local bin directory (contains python system package wrappers)
COPY --from=atst-tester:latest "${LOCAL_BIN_DIR}" "${LOCAL_BIN_DIR}"
# Copy the app directory contents from the tester image (includes node modules) # Copy the app directory contents from the tester image (includes node modules)
COPY --from=atst-tester:latest "${APP_DIR}" "${APP_DIR}" COPY --from=atst-tester:latest "${APP_DIR}" "${APP_DIR}"