jbilcke-hf/template-node-wizardcoder-express
3
1FROM python:latest2 3ENV PYTHONUNBUFFERED 14 5EXPOSE 78606 7RUN apt update8 9RUN apt install curl10 11RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -12 13RUN apt install nodejs14 15RUN useradd -m -u 1000 user16USER user17ENV HOME=/home/user \18 PATH=/home/user/.local/bin:$PATH19 20WORKDIR $HOME/app21 22COPY --chown=user package*.json .23 24RUN npm install25 26COPY requirements.txt ./27RUN pip install --upgrade pip && \28 pip install -r requirements.txt29 30COPY --chown=user . .31 32# a limitation of Pythonia is that async calls can timeout33# so we perform the slow operation of downloading the model to cache beforehand34RUN python download-model.py35 36CMD [ "npm", "run", "start" ]