From ab07579b482621c34f5bb116b5682de2a922d67a Mon Sep 17 00:00:00 2001 From: luiz Date: Tue, 3 Oct 2023 16:04:48 +0200 Subject: [PATCH] fix requirements, docker compose, frontend image --- containers/requirements.txt | 3 ++- docker-compose.yml | 7 ++----- frontend/Dockerfile | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/containers/requirements.txt b/containers/requirements.txt index c6ef5db..9ebd43d 100644 --- a/containers/requirements.txt +++ b/containers/requirements.txt @@ -3,7 +3,8 @@ requests fsspec aiohttp threadpoolctl==3.2.0 # https://stackoverflow.com/a/72840515/11483674 -Flask[async]==2.2.3 +Flask[async]==2.3.3 +Werkzeug==2.3.7 pydantic[email]==1.10.12 pynwb==2.5.0 spikeinterface[full]==0.98.2 diff --git a/docker-compose.yml b/docker-compose.yml index c05a035..f973cc7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,6 @@ services: - "3000:3000" environment: DEPLOY_MODE: compose - volumes: - - ./frontend:/app depends_on: - rest @@ -24,9 +22,9 @@ services: AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION} AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} + AWS_BATCH_JOB_QUEUE: ${AWS_BATCH_JOB_QUEUE} + AWS_BATCH_JOB_DEFINITION: ${AWS_BATCH_JOB_DEFINITION} DANDI_API_KEY: ${DANDI_API_KEY} - volumes: - - ./rest:/app depends_on: - database @@ -41,7 +39,6 @@ services: AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} volumes: - - ./containers:/app - ./results:/results - ./logs:/logs runtime: nvidia diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 453e79a..7c4c1c9 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,9 +1,10 @@ # Dockerfile for the frontend -FROM node:16-alpine +FROM node:19.2-bullseye-slim WORKDIR /app COPY package*.json ./ +COPY yarn.lock ./ RUN yarn install COPY . ./