docs/archived/v0.23-docs/eventing/sources/creating-event-sources/writing-event-source-easy-way/Dockerfile

19 lines
344 B
Docker

FROM node:10
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
EXPOSE 8080
CMD [ "node", "index.js" ]