mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
update dockerfiles
This commit is contained in:
parent
166617b153
commit
da7cd09244
@ -67,11 +67,12 @@ COPY ./admin/ .
|
||||
# Copy everything from config
|
||||
COPY ./config/ ../config/
|
||||
|
||||
# yarn install and build config
|
||||
RUN cd ../config && yarn install --production=false --frozen-lockfile --non-interactive && yarn build
|
||||
|
||||
# yarn install admin
|
||||
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
||||
# yarn install config
|
||||
RUN cd ../config && yarn install --production=false --frozen-lockfile --non-interactive
|
||||
RUN cd ../config && yarn build
|
||||
|
||||
# yarn build
|
||||
RUN yarn run build
|
||||
|
||||
|
||||
@ -70,24 +70,21 @@ COPY ./database/ ../database/
|
||||
# Copy everything from config
|
||||
COPY ./config/ ../config/
|
||||
|
||||
# yarn install and build config
|
||||
RUN cd ../config && yarn install --production=false --frozen-lockfile --non-interactive && yarn build
|
||||
|
||||
# yarn install backend
|
||||
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
||||
|
||||
# yarn install database
|
||||
RUN cd ../database && yarn install --production=false --frozen-lockfile --non-interactive
|
||||
|
||||
# yarn install config
|
||||
RUN cd ../config && yarn install --production=false --frozen-lockfile --non-interactive
|
||||
|
||||
# yarn build
|
||||
RUN yarn build
|
||||
|
||||
# yarn build database
|
||||
RUN cd ../database && yarn build
|
||||
|
||||
# yarn build config
|
||||
RUN cd ../config && yarn build
|
||||
|
||||
##################################################################################
|
||||
# TEST ###########################################################################
|
||||
##################################################################################
|
||||
|
||||
1
config/.nvmrc
Normal file
1
config/.nvmrc
Normal file
@ -0,0 +1 @@
|
||||
v18.7.0
|
||||
@ -2,7 +2,7 @@ import Joi from 'joi'
|
||||
|
||||
export const browserUrls = Joi.array()
|
||||
.items(Joi.string().uri())
|
||||
.custom((value: Joi.string, helpers: Joi.helpers<Joi.string>) => {
|
||||
.custom((value: string[], helpers: Joi.CustomHelpers<string[]>) => {
|
||||
const protocol = new URL(value[0]).protocol
|
||||
for (const url of value) {
|
||||
if (new URL(url).protocol !== protocol) {
|
||||
@ -28,7 +28,7 @@ export const DB_VERSION = Joi.string()
|
||||
|
||||
export const COMMUNITY_URL = Joi.string()
|
||||
.uri({ scheme: ['http', 'https'] })
|
||||
.custom((value: Joi.string, helpers: Joi.helpers<Joi.string>) => {
|
||||
.custom((value: string, helpers: Joi.CustomHelpers<string>) => {
|
||||
if (value.endsWith('/')) {
|
||||
return helpers.error('any.invalid', { message: 'URL should not end with a slash (/)' })
|
||||
}
|
||||
|
||||
@ -68,12 +68,12 @@ COPY ./frontend ./
|
||||
# Copy everything from config
|
||||
COPY ./config/ ../config/
|
||||
|
||||
# install and build config
|
||||
RUN cd ../config && yarn install --production=false --frozen-lockfile --non-interactive && yarn build
|
||||
|
||||
# npm install
|
||||
RUN yarn global add node-gyp && yarn install --production=false --frozen-lockfile --non-interactive
|
||||
|
||||
# install and build config
|
||||
RUN cd ../config && yarn install --production=false --frozen-lockfile --non-interactive
|
||||
RUN cd ../config && yarn build
|
||||
# npm build
|
||||
RUN yarn run build
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user