From 70767f0ac29fa40a05659749dfb910b4ad8cb3a4 Mon Sep 17 00:00:00 2001 From: raffaele messuti Date: Fri, 17 Jun 2022 04:56:40 +0200 Subject: [PATCH] small fixes on docker swarm deployment (#265) * fix COPY with multiple files * Update Deployment.md --- Deployment.md | 2 ++ frontend/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Deployment.md b/Deployment.md index 3aa07660..01c4d6fc 100644 --- a/Deployment.md +++ b/Deployment.md @@ -20,6 +20,8 @@ as with multi-machine setups. Docker Swarm is part of Docker, so if you have Doc 2. You can edit `configs/config.env` and `configs/config.yaml` to set default passwords for superadmin, minio and mongodb. +2.5: Optionally: run `build-swarm.sh` to build the Docker images locally on your machine (eg. if you've made any changes). + 3. Run `run-swarm.sh` to initialize the cluster. 4. Load `http://localhost:9871/` to see the Browsertrix Cloud login page. (The API is also available at: `http://localhost:9871/api/docs`). diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 8beac932..9a28de4b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -11,7 +11,7 @@ ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH} \ WORKDIR /app -COPY yarn.lock package.json . +COPY yarn.lock package.json ./ RUN yarn --frozen-lockfile COPY lit-localize.json \ @@ -20,7 +20,7 @@ COPY lit-localize.json \ tsconfig.json \ webpack.config.js \ webpack.prod.js \ - . + ./ COPY src ./src/