Spaces:
Sleeping
Sleeping
File size: 618 Bytes
6250002 58b8d89 6250002 86cb157 49cd125 6250002 79462c6 6250002 |
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 29 30 31 |
FROM debian
RUN apt-get update
RUN apt-get install -y python3 pip
RUN apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash - && apt-get install -y nodejs
WORKDIR /code
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY --chown=user server /code/server/
RUN pip install --no-cache-dir --upgrade -r /code/server/requirements.txt --break-system-packages
COPY --chown=user web /code/web/
RUN cd web && npm install
RUN cd web && npm run build
WORKDIR /code/server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
|