Skip to content

Instantly share code, notes, and snippets.

@koss822
Created June 14, 2023 17:35
Show Gist options
  • Save koss822/8015f1dfe60958f545181dafc5049a4c to your computer and use it in GitHub Desktop.
Save koss822/8015f1dfe60958f545181dafc5049a4c to your computer and use it in GitHub Desktop.
FROM node:20
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --omit=dev
# Bundle app source
COPY . .
EXPOSE 8080
CMD [ "node", "exporter.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment