This commit is contained in:
parent
59a04ab9b0
commit
067432eda9
@ -11,12 +11,12 @@ RUN npm i -g tsx
|
|||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
## copy the necessary files after pulling deps
|
||||||
COPY --from=builder /build/node_modules node_modules
|
COPY --from=builder /build/node_modules node_modules
|
||||||
COPY tsconfig.json package.json cli .yarnrc.yml yarn.lock .
|
COPY tsconfig.json package.json cli .yarnrc.yml yarn.lock .
|
||||||
COPY src src
|
COPY src src
|
||||||
|
|
||||||
# make sure it passes compilation before compiling
|
# make sure it passes compilation before publishing image
|
||||||
RUN corepack yarn tsc
|
RUN corepack yarn tsc
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT ["/app/cli"]
|
ENTRYPOINT ["/app/cli"]
|
||||||
|
Loading…
Reference in New Issue
Block a user