mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 17:02:09 +08:00
commit
07f5842230
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/**
|
||||||
|
!/module
|
||||||
|
!/plugins
|
||||||
|
!/public
|
||||||
|
!/static
|
||||||
|
!/util
|
||||||
|
!/app.js
|
||||||
|
!/server.js
|
||||||
|
!/package.json
|
||||||
|
!/package-lock.json
|
17
Dockerfile
17
Dockerfile
@ -1,11 +1,16 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
RUN apk add --no-cache tini
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
RUN npm config set registry "https://registry.npmmirror.com/" \
|
ENV NODE_ENV production
|
||||||
&& npm install -g npm husky \
|
USER node
|
||||||
&& npm install --production
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --chown=node:node . ./
|
||||||
|
|
||||||
|
RUN npm i --omit=dev --ignore-scripts
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "app.js"]
|
|
||||||
|
CMD [ "/sbin/tini", "--", "node", "app.js" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user