influx-only #2

Merged
Fascinated merged 20 commits from influx-only into master 2024-01-03 08:32:27 +00:00
2 changed files with 10 additions and 6 deletions
Showing only changes of commit 9453ef59d3 - Show all commits

@ -1,9 +1,15 @@
FROM node:lts-alpine
FROM fascinated/docker-images:node-pnpm-latest AS base
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY ["package.json", "pnpm-lock.json", "./"]
RUN pnpm install --production --silent && mv node_modules ../
COPY . .
RUN chown -R node /usr/src/app
USER node
CMD ["node", "index.js"]
CMD pnpm run start

@ -3,5 +3,3 @@ version: "3.4"
services:
backend:
image: fascinated/mc-tracker-backend:influx
environment:
NODE_ENV: production