docker-sveltekit / Dockerfile
radames's picture
Update Dockerfile (#1)
46b473a
raw
history blame contribute delete
595 Bytes
FROM nikolaik/python-nodejs:python3.9-nodejs18
RUN apt-get update && apt-get install -y \
git-lfs \
build-essential \
libssl-dev \
wget \
ffmpeg \
libsm6 \
libxrender-dev \
ffmpeg \
libsm6 \
libxext6 \
cmake \
libgl1-mesa-glx && \
rm -rf /var/lib/apt/lists/* && \
git lfs install
WORKDIR /code
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
RUN cd frontend && npm install && npm run build
WORKDIR /code
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]