This commit is contained in:
parent
87e020ff4a
commit
e854091fda
2 changed files with 20 additions and 4 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -31,12 +31,17 @@ RUN npx puppeteer install chrome --install-deps
|
|||
RUN fc-cache -f && rm -rf /var/cache/* && apt -y autoremove && rm -rf /var/lib/apt/lists/* && apt-get clean
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY templates templates
|
||||
COPY package.json .
|
||||
ENV NODE_ENV=production
|
||||
COPY tsconfig.json .
|
||||
COPY libs libs
|
||||
COPY app.ts .
|
||||
COPY yaqrcode.d.ts .
|
||||
COPY templates templates
|
||||
ENV NODE_ENV=development
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
ENV NODE_ENV=production
|
||||
RUN npm prune --production
|
||||
|
||||
|
||||
COPY dist2 .
|
||||
EXPOSE 80
|
||||
CMD ["node","app.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue