Spaces:
Sleeping
Sleeping
File size: 784 Bytes
9bbddc7 5fb374b 9bbddc7 5fb374b 9bbddc7 ddc0a44 9bbddc7 8cbe088 9bbddc7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM ubuntu:22.04 as base
WORKDIR /app
ENV NODE_ENV=production
FROM base as build
RUN apt-get update -qq && \
apt-get install -y git curl unzip wget gnupg build-essential lsb-release
COPY . .
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
RUN useradd -m -u 1000 user
RUN chown -R user:user /app /usr/local /tmp
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
RUN npm install --include=dev @huggingface/inference
RUN npm install --include=dev @huggingface/hub
RUN curl -L -O https://github.com/get-convex/convex-backend/releases/download/precompiled-2024-05-07-13337fd/convex-local-backend-x86_64-unknown-linux-gnu.zip && \
unzip convex-local-backend-x86_64-unknown-linux-gnu.zip
CMD ["./run.sh"] |