switch to npm builds
This commit is contained in:
parent
b6f372017e
commit
6732fe4db5
17
Dockerfile
17
Dockerfile
|
@ -1,17 +0,0 @@
|
||||||
# Use the official image as a parent image.
|
|
||||||
FROM node:current-slim
|
|
||||||
|
|
||||||
# Set the working directory.
|
|
||||||
WORKDIR ./DOCKER
|
|
||||||
|
|
||||||
# Copy the file from your host to your current location.
|
|
||||||
COPY ./package.json .
|
|
||||||
COPY ./package-lock.json .
|
|
||||||
# Run the command inside your image filesystem.
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
# Run the specified command within the container.
|
|
||||||
CMD [ "npm", "start" ]
|
|
||||||
|
|
||||||
# Copy the rest of your app's source code from your host to your image filesystem.
|
|
||||||
COPY ./src/ .
|
|
|
@ -8,6 +8,7 @@
|
||||||
"n": "^6.4.0",
|
"n": "^6.4.0",
|
||||||
"pretty-ms": "^6.0.1"
|
"pretty-ms": "^6.0.1"
|
||||||
},
|
},
|
||||||
|
"publishConfig": { "registry": "https://npm.pkg.github.com/" },
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
|
Loading…
Reference in New Issue