Fix storage s3 endpoint not being optional
This commit is contained in:
@ -13,10 +13,15 @@ COPY ./packages/twenty-server /app/packages/twenty-server
|
|||||||
RUN yarn
|
RUN yarn
|
||||||
|
|
||||||
RUN npx nx reset
|
RUN npx nx reset
|
||||||
|
RUN npx nx run twenty-server:build
|
||||||
|
RUN mv /app/packages/twenty-server/dist /app/packages/twenty-server/build
|
||||||
RUN npx nx run twenty-server:build:packageJson
|
RUN npx nx run twenty-server:build:packageJson
|
||||||
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
|
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
|
||||||
RUN npx nx run twenty-server:build
|
RUN rm -rf /app/packages/twenty-server/dist
|
||||||
RUN yarn workspaces focus twenty-emails twenty-server
|
RUN mv /app/packages/twenty-server/build /app/packages/twenty-server/dist
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
RUN yarn workspaces focus --production twenty-emails twenty-server
|
||||||
|
|
||||||
FROM node:18.17.1-alpine as twenty-server
|
FROM node:18.17.1-alpine as twenty-server
|
||||||
|
|
||||||
|
|||||||
@ -165,6 +165,7 @@ export class EnvironmentVariables {
|
|||||||
|
|
||||||
@ValidateIf((env) => env.STORAGE_TYPE === StorageDriverType.S3)
|
@ValidateIf((env) => env.STORAGE_TYPE === StorageDriverType.S3)
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@IsOptional()
|
||||||
STORAGE_S3_ENDPOINT: string;
|
STORAGE_S3_ENDPOINT: string;
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
|
|||||||
Reference in New Issue
Block a user