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