#makePublic
FROM node:16
# FROM node:18-buster

ARG TAG

RUN apt-get update && apt-get install -yq git curl

# RUN yarn global add npm yarn

COPY . .

RUN yarn
RUN yarn pack

# # RUN yarn prepare

# ENV PATH="$PATH:yarn global bin"

# RUN yarn build && yarn link
# RUN yarn global bin
# RUN ls $(yarn global bin)
# RUN chmod +x $(yarn global bin)/lsif-typescript
# RUN lsif-typescript --help

# RUN yarn global add @sourcefield/lsif-typescript@file:../
# RUN npm unlink @sourcegraph/lsif-typescript && yarn link
# / && npm unlink && yarn link

CMD ["/bin/sh"]
