1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-18 22:31:32 +03:00
leon/Dockerfile
Peter Dave Hello e3baea9571
Remove apk update in Dockerfile
With `--no-cache` on `apk add`, there is no need to do `apk update`
2019-03-09 17:46:39 +08:00

27 lines
547 B
Docker

FROM node:10-alpine
WORKDIR /app
COPY . .
# Install system packages
RUN apk add --no-cache \
ca-certificates \
build-base \
python3 \
git \
tzdata
# Upgrade pip and install Pipenv
RUN pip3 install --upgrade pip \
&& pip install pipenv
# Install Leon
# Need to explicitly run the npm preinstall and npm posinstall scripts
# because npm tries to downgrade its privileges, and these scripts are not executed
RUN npm run preinstall
RUN npm install
RUN npm run postinstall
RUN npm run build
# Let's run it
CMD ["npm", "start"]