mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
668ec989ad
* Update Dockerfile to work with Next.js - Update to Node 18 - Do not run as root, this also works better with Node privilege-dropping. - Update README with new run instructions and adding the `--rm` flag to avoid leaving a bunch of unused Docker containers. - Also change README to recommend building the image locally. Image builds are pretty fast and the uploaded images get outdated pretty quickly. * Add .dockerignore to avoid sending large build contexts * Typo
15 lines
425 B
Docker
15 lines
425 B
Docker
FROM node:18
|
|
|
|
USER node
|
|
|
|
# This is so the installed node_modules will be up one directory
|
|
# from where a user mounts files, so that they don't accidentally mount
|
|
# their own node_modules from a different build
|
|
# https://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders
|
|
WORKDIR /home/node
|
|
COPY --chown=node package.json .
|
|
COPY --chown=node package-lock.json .
|
|
RUN npm install
|
|
|
|
WORKDIR /home/node/website/
|