update dockerfiles

This commit is contained in:
einhornimmond 2025-01-24 13:55:48 +01:00
parent 166617b153
commit da7cd09244
5 changed files with 13 additions and 14 deletions

View File

@ -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

View File

@ -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
View File

@ -0,0 +1 @@
v18.7.0

View File

@ -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 (/)' })
}

View File

@ -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