woogieReal / MDGround3

3 stars 0 forks source link

[트리] 빌드 오류 #141

Closed woogieReal closed 1 year ago

woogieReal commented 1 year ago
MD3-PROD
MD3-PROD
Untagged: md3-prod:latest
Deleted: sha256:1a5ae9da722b036eceec80b303607b1c97fb8cc8c60775ee1774f3ef61543457
[+] Building 34.4s (11/11) FINISHED
 => [internal] load .dockerignore                                                                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                                                                  0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                             0.0s
 => => transferring dockerfile: 213B                                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/node:16-alpine                                                                                                                                2.7s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                                      0.0s
 => [1/6] FROM docker.io/library/node:16-alpine@sha256:6c381d5dc2a11dcdb693f0301e8587e43f440c90cdb8933eaaaabb905d44cdb9                                                                          0.0s
 => [internal] load build context                                                                                                                                                                3.4s
 => => transferring context: 193.61MB                                                                                                                                                            3.4s
 => CACHED [2/6] WORKDIR /usr/src/app                                                                                                                                                            0.0s
 => [3/6] COPY package*.json ./                                                                                                                                                                  0.4s
 => [4/6] RUN npm install                                                                                                                                                                       10.3s
 => [5/6] COPY . .                                                                                                                                                                               9.6s
 => ERROR [6/6] RUN npm run build                                                                                                                                                                8.0s
------
 > [6/6] RUN npm run build:
#0 0.331
#0 0.331 > mdground3@0.1.0 build
#0 0.331 > next build
#0 0.331
#0 0.515 info  - Loaded env from /usr/src/app/.env.production
#0 0.675 info  - Linting and checking validity of types...
#0 7.846 Failed to compile.
#0 7.846
#0 7.846 ./src/apis/dbConnection.ts:28:9
#0 7.846 Type error: Variable 'redisClient' implicitly has type 'any' in some locations where its type cannot be determined.
#0 7.846
#0 7.846   26 |     }
#0 7.846   27 |   ) {
#0 7.846 > 28 |     let redisClient;
#0 7.846      |         ^
#0 7.846   29 |     let connection;
#0 7.846   30 |     let result: any;
#0 7.846   31 |
------
Dockerfile:10
--------------------
   8 |
   9 |     COPY . .
  10 | >>> RUN npm run build
  11 |
  12 |     EXPOSE 3000
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
Unable to find image 'md3-prod:latest' locally
docker: Error response from daemon: pull access denied for md3-prod, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.