simple-links/Dockerfile

18 lines
382 B
Docker
Raw Normal View History

2023-07-01 20:43:53 +00:00
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
2023-07-01 22:17:34 +01:00
2023-07-02 12:05:27 +01:00
# Opt out of NextJS telemetry
RUN npx next telemetry disable
2023-07-01 22:17:34 +01:00
# Build the app
RUN npm run build
2023-07-01 20:43:53 +00:00
CMD ["npm", "start"]