fix build
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m49s

This commit is contained in:
Warunee Tamkoo 2025-09-16 16:52:45 +07:00
parent 87e020ff4a
commit e854091fda
2 changed files with 20 additions and 4 deletions

11
.dockerignore Normal file
View file

@ -0,0 +1,11 @@
node_modules
.git
.gitignore
README.md
.env
.nyc_output
coverage
.nyc_output
*.md
test-run
.vscode

View file

@ -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"]