Add file check in dockerfile
Some checks failed
Portfolio/pipeline/head There was a failure building this commit
Some checks failed
Portfolio/pipeline/head There was a failure building this commit
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -11,10 +11,19 @@ WORKDIR /app
|
||||
|
||||
# Copy depedencies
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Copy all and build
|
||||
# Install pnpm with cache
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
PNPM_HOME="/pnpm" pnpm install --frozen-lockfile
|
||||
|
||||
# Copy all
|
||||
COPY . .
|
||||
|
||||
# Check files
|
||||
RUN pnpm run lint
|
||||
RUN pnpm run check
|
||||
|
||||
# Build
|
||||
RUN pnpm build
|
||||
|
||||
# --- DEPLOY ---
|
||||
|
||||
Reference in New Issue
Block a user