Skip to content

Commit 724de6b

Browse files
working on docker files for deployment
1 parent 804385d commit 724de6b

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

docker-compose-production.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# DOCKER COMPOSE DEPLOYMENT
33
# -----------------------------------------------------------------------------
44
# build containers
5-
# sudo docker-compose -f docker-compose-production.yml build --no-cache
6-
# sudo docker-compose -f docker-compose-production.yml build
5+
# sudo docker compose -f docker-compose-production.yml build --no-cache
6+
# sudo docker compose -f docker-compose-production.yml build
77
# serve containers
8-
# sudo docker-compose -f docker-compose-production.yml up
9-
# sudo docker-compose -f docker-compose-production.yml up --detach
8+
# sudo docker compose -f docker-compose-production.yml up
9+
# sudo docker compose -f docker-compose-production.yml up --detach
1010
# -----------------------------------------------------------------------------
1111
volumes:
1212
vue_dist:

sbml4humans/Dockerfile-develop

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM node:14.11.0 AS build-stage
1+
FROM node:14 AS build-stage
2+
# RUN apk add g++ make py3-pip
23
WORKDIR /app
34
COPY package*.json /app/
45
RUN npm install

sbml4humans/Dockerfile-production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# build stage
2-
FROM node:14.11.0 AS build-stage
2+
FROM node:14 AS build-stage
33
WORKDIR /app
44
COPY package*.json /app/
55
RUN npm install

sbml4humans/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ environment for the SBML4Humans report.
44

55
## Project setup for development
66

7-
### Start backend API and frontend (docker-compose)
7+
### Start backend API and frontend (docker compose)
88
The simplest setup is to start the frontend and backend via the docker-compose scripts.
99

10+
```
11+
sudo docker compose -f docker-compose-develop.yml build --no-cache
12+
sudo docker compose -f docker-compose-develop.yml up
13+
```
1014

1115
Alternatively the backend and frontend can be run directly on the machine. This most likely requires updates of the local `node` and `npm` packages.
1216

0 commit comments

Comments
 (0)