fix build step
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 4m2s
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 4m2s
This commit is contained in:
@@ -15,23 +15,18 @@ COPY package.json yarn.lock ./
|
|||||||
# Install app dependencies
|
# Install app dependencies
|
||||||
RUN yarn install --immutable
|
RUN yarn install --immutable
|
||||||
|
|
||||||
FROM base AS build
|
|
||||||
# Type check app
|
# Type check app
|
||||||
# RUN yarn typecheck
|
# RUN yarn typecheck
|
||||||
|
|
||||||
# Bundle app source
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN yarn build
|
|
||||||
|
|
||||||
|
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
|
|
||||||
# Bundle app source
|
# Build app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install only production app dependencies
|
RUN yarn build
|
||||||
RUN yarn install --immutable
|
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user