UNPKG

319 BPlain TextView Raw
1from node:wheezy
2
3# Create app directory
4RUN mkdir -p /usr/src/app
5WORKDIR /usr/src/app
6
7# Bundle app source
8COPY . /usr/src/app
9
10# Install app dependencies
11COPY package.json /usr/src/app/
12RUN npm install
13
14# Build app
15RUN npm run clean
16RUN npm run build
17
18# Expose the port
19EXPOSE 1337
20
21# Run it!
22CMD [ "npm", "start" ]