Open
Description
Environment
- Platform: macos 13.4 M1
- Docker Version: 24.0.2
- Node.js Version: 20.3.0
- Image Tag: node:20-alpine3.17
Expected Behavior
yarn tsc should run correctly
Current Behavior
> [service 5/5] RUN yarn build:
#0 0.298 yarn run v1.22.19
#0 0.314 $ tsc
#0 0.325 /usr/bin/env: 'node': Text file busy
#0 0.334 error Command failed with exit code 126.
Possible Solution
downgrade to node:20-alpine3.16 (or node:20.2.0-bullseye-slim)
Steps to Reproduce
dockerfile:
FROM node:20-alpine3.17 as install
WORKDIR /service
COPY ./service ./
RUN yarn install --frozen-lockfile
RUN yarn build
yarn build
creates a directory, compiles some protobuf, then execs tsc
(bin from typescript dependency)
Additional Information
Things work correctly on 3.16, but give the text file busy
error with 3.17 and 3.18. Also tried bullseye-slim and node:20.3.0-bullseye-slim
gives the same error, but 20.2.0 works correctly.
Maybe this is an architecture mismatch or file permissions problem?
Metadata
Metadata
Assignees
Labels
No labels