From 724de6b1fe16ccadb8c38bce962861f1117fcf19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20K=C3=B6nig?= <konigmatt@googlemail.com>
Date: Thu, 15 Aug 2024 11:27:14 +0200
Subject: [PATCH] working on docker files for deployment

---
 docker-compose-production.yml     | 8 ++++----
 sbml4humans/Dockerfile-develop    | 3 ++-
 sbml4humans/Dockerfile-production | 2 +-
 sbml4humans/README.md             | 6 +++++-
 4 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/docker-compose-production.yml b/docker-compose-production.yml
index 592e31d5..50e7b6bd 100644
--- a/docker-compose-production.yml
+++ b/docker-compose-production.yml
@@ -2,11 +2,11 @@
 # DOCKER COMPOSE DEPLOYMENT
 # -----------------------------------------------------------------------------
 # build containers
-#   sudo docker-compose -f docker-compose-production.yml build --no-cache
-#   sudo docker-compose -f docker-compose-production.yml build
+#   sudo docker compose -f docker-compose-production.yml build --no-cache
+#   sudo docker compose -f docker-compose-production.yml build
 # serve containers
-#   sudo docker-compose -f docker-compose-production.yml up
-#   sudo docker-compose -f docker-compose-production.yml up --detach
+#   sudo docker compose -f docker-compose-production.yml up
+#   sudo docker compose -f docker-compose-production.yml up --detach
 # -----------------------------------------------------------------------------
 volumes:
   vue_dist:
diff --git a/sbml4humans/Dockerfile-develop b/sbml4humans/Dockerfile-develop
index e5c368f6..00b5cdfa 100644
--- a/sbml4humans/Dockerfile-develop
+++ b/sbml4humans/Dockerfile-develop
@@ -1,4 +1,5 @@
-FROM node:14.11.0 AS build-stage
+FROM node:14 AS build-stage
+# RUN apk add g++ make py3-pip
 WORKDIR /app
 COPY package*.json /app/
 RUN npm install
diff --git a/sbml4humans/Dockerfile-production b/sbml4humans/Dockerfile-production
index f44a2dd8..c5728c33 100644
--- a/sbml4humans/Dockerfile-production
+++ b/sbml4humans/Dockerfile-production
@@ -1,5 +1,5 @@
 # build stage
-FROM node:14.11.0 AS build-stage
+FROM node:14 AS build-stage
 WORKDIR /app
 COPY package*.json /app/
 RUN npm install
diff --git a/sbml4humans/README.md b/sbml4humans/README.md
index 29ce9976..58c06394 100644
--- a/sbml4humans/README.md
+++ b/sbml4humans/README.md
@@ -4,9 +4,13 @@ environment for the SBML4Humans report.
 
 ## Project setup for development
 
-### Start backend API and frontend (docker-compose)
+### Start backend API and frontend (docker compose)
 The simplest setup is to start the frontend and backend via the docker-compose scripts.
 
+```
+sudo docker compose -f docker-compose-develop.yml build --no-cache
+sudo docker compose -f docker-compose-develop.yml up
+```
 
 Alternatively the backend and frontend can be run directly on the machine. This most likely requires updates of the local `node` and `npm` packages.