docker-compose fail
omattman opened this issue · 0 comments
omattman commented
Command: PORT=3000 docker-compose up
Build fail output:
$ PORT=3000 docker-compose up
Building app
[+] Building 28.6s (13/16)
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 32B
=> [internal] load .dockerignore
=> => transferring context: 34B
=> [internal] load metadata for docker.io/library/node:lts
=> [auth] library/node:pull token for registry-1.docker.io
=> [internal] load build context
=> => transferring context: 16.73kB
=> [node_modules 1/3] FROM docker.io/library/node:lts@sha256:0c672d547405fe64808ea28b49c5772b1026f81b3b716ff44c10c96abf
=> CACHED [stage-2 2/6] RUN mkdir -p /usr/src/app
=> CACHED [stage-2 3/6] WORKDIR /usr/src/app
=> CACHED [node_modules 2/3] COPY package.json yarn.lock ./
=> CACHED [node_modules 3/3] RUN yarn install --prod
=> CACHED [dist 3/5] RUN yarn install
=> [dist 4/5] COPY . ./
=> ERROR [dist 5/5] RUN yarn build:prod
------
> [dist 5/5] RUN yarn build:prod:
#12 0.638 yarn run v1.22.19
#12 0.677 $ tsc -p tsconfig.build.json
#12 26.71 src/validators/exists.validator.ts(26,16): error TS2349: This expression is not callable.
#12 26.71 Not all constituents of type 'string | ((validationArguments: ValidationArguments) => FindOptionsWhere<E>)' are callable.
#12 26.71 Type 'string' has no call signatures.
#12 26.71 src/validators/unique.validator.ts(22,16): error TS2349: This expression is not callable.
#12 26.71 Not all constituents of type 'string | ((validationArguments: ValidationArguments) => FindOptionsWhere<E>)' are callable.
#12 26.71 Type 'string' has no call signatures.
#12 26.82 error Command failed with exit code 2.
#12 26.83 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
executor failed running [/bin/sh -c yarn build:prod]: exit code: 2
ERROR: Service 'app' failed to build : Build failed