Merge branch 'iota3_bootstrap_hello_welt' of github.com:gradido/gradido into iota3_bootstrap_hello_welt

This commit is contained in:
einhorn_b 2023-06-13 16:45:17 +02:00
commit 8176d3f724

View File

@ -47,10 +47,18 @@ WORKDIR ${DOCKER_WORKDIR}
RUN mkdir -p /database
##################################################################################
# BASE with build tools for rust based npm modules like @iota/client #############
##################################################################################
FROM base as base_extended
# needed for building @iota/client, it is a rust based module
RUN apk add --no-cache rust cargo python3 make g++
##################################################################################
# DEVELOPMENT (Connected to the local environment, to reload on demand) ##########
##################################################################################
FROM base as development
FROM base_extended as development
# We don't need to copy or build anything since we gonna bind to the
# local filesystem which will need a rebuild anyway
@ -63,7 +71,7 @@ CMD /bin/sh -c "cd /database && yarn install && yarn build && cd /app && yarn in
##################################################################################
# BUILD (Does contain all files and is therefore bloated) ########################
##################################################################################
FROM base as build
FROM base_extended as build
# Copy everything from backend
COPY ./backend/ ./