Correctif import + library Opus + Fix util Twitch
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,15 +1,19 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY ["package.json", "package-lock.json*", "./"]
|
||||
RUN apk add --no-cache ffmpeg python3 make g++
|
||||
RUN npm install -g ts-node
|
||||
RUN npm install --production --verbose && mv node_modules ../
|
||||
|
||||
COPY . .
|
||||
RUN chown -R node /usr/src/app
|
||||
RUN mkdir -p /usr/src/app/node_modules
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
RUN chown -R node:node /usr/src/app
|
||||
|
||||
USER node
|
||||
#ENV NODE_ENV=production
|
||||
#RUN npm install --production --verbose
|
||||
RUN npm install --verbose
|
||||
|
||||
CMD ["npm", "start"]
|
||||
COPY --chown=node:node . .
|
||||
|
||||
CMD ["npm", "start"]
|
||||
#CMD ["npm", "run", "prod"]
|
||||
Reference in New Issue
Block a user