updated compose to use new dockerfile in root dir
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ ENV PATH="${POETRY_HOME}/bin:$PATH"
|
|||||||
|
|
||||||
# install runtime dependencies
|
# install runtime dependencies
|
||||||
WORKDIR ${APP_HOME}
|
WORKDIR ${APP_HOME}
|
||||||
COPY poetry.lock pyproject.toml ./
|
COPY ../poetry.lock ../pyproject.toml ./
|
||||||
RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry install \
|
RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry install \
|
||||||
--with shared,web_ui
|
--with shared,web_ui
|
||||||
|
|
||||||
@@ -49,8 +49,8 @@ RUN mkdir -p /home/app && \
|
|||||||
|
|
||||||
# add code while changing ownership
|
# add code while changing ownership
|
||||||
WORKDIR $APP_HOME
|
WORKDIR $APP_HOME
|
||||||
COPY --chown=app:app ./shared ./shared
|
COPY --chown=app:app ../shared ./shared
|
||||||
COPY --chown=app:app ./web_ui/src ./src
|
COPY --chown=app:app ./src ./src
|
||||||
|
|
||||||
# change to the app user
|
# change to the app user
|
||||||
USER app
|
USER app
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web_ui:
|
||||||
image: visual_critical_discourse_analysis:test
|
image: visual_critical_discourse_analysis:test
|
||||||
container_name: visual_critical_discourse_analysis_alone
|
container_name: visual_critical_discourse_analysis_alone
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ../
|
||||||
dockerfile: ./web_ui/Dockerfile
|
dockerfile: Dockerfile.web_ui
|
||||||
ports:
|
ports:
|
||||||
- 8050:8050
|
- 8050:8050
|
||||||
env_file:
|
env_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user