1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-03 02:45:21 +03:00
leon/Dockerfile

15 lines
314 B
Docker
Raw Normal View History

FROM node:16.18.0
ENV IS_DOCKER true
2019-02-12 16:25:02 +03:00
# Run the container as an unprivileged user
RUN groupadd docker && useradd -g docker -s /bin/bash -m docker
WORKDIR /home/docker/leon
RUN chown --recursive docker /home/docker/leon
USER docker
COPY --chown=docker ./ ./
RUN npm install
2019-02-12 16:25:02 +03:00
RUN npm run build
2019-02-23 16:27:28 +03:00
CMD ["npm", "start"]