This repository has been archived on 2023-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
fortnite-metrics-grafana/Dockerfile
Fascinated c900fe560f
All checks were successful
docker (ubuntu-latest, 2.38.4)
fix dockerfile
2023-04-09 08:42:34 +01:00

11 lines
292 B
Docker

FROM node:lts-alpine
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 . .
EXPOSE 3000
RUN chown -R node /usr/src/app
USER node
CMD ["node", "src/index.js"]