1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-27 18:55:01 +03:00
leon/Dockerfile
Divlo 2f66f1c17b
refactor: prerequisites Node.js >= 16.0.0 and npm >= 8.0.0 (#322)
BREAKING CHANGE: minimum supported Node.js v16.0.0 and npm v8.0.0
2021-11-07 10:24:00 +08:00

21 lines
342 B
Docker

FROM node:16-alpine
ENV IS_DOCKER true
WORKDIR /app
# Install system packages
RUN apk add --no-cache --no-progress \
ca-certificates \
py3-pip \
git \
tzdata
# Upgrade pip and install Pipenv
RUN pip3 install --no-cache-dir --progress-bar off pipenv
# Install Leon
COPY ./ ./
RUN npm install
RUN npm run build
CMD ["npm", "start"]