holmes: docker edition

This commit is contained in:
Lea 2023-04-16 01:25:39 +02:00
parent c2b8b386ce
commit c0826f2396
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -9,4 +9,17 @@ RUN yarn build
FROM node:18 as run
WORKDIR /app
COPY --from=build /build/app/ /app/
# Set up python
RUN apt-get update
RUN apt-get install -y pip
# Clone sherlock
RUN git clone https://github.com/sherlock-project/sherlock.git /app/sherlock
WORKDIR /app/sherlock
RUN python3 -m pip install -r requirements.txt
ENV SHERLOCK_COMMAND "python3 /app/sherlock/sherlock"
WORKDIR /app
CMD ["node", "--experimental-specifier-resolution=node", "dist"]