mirror of
https://github.com/len0rd/personal-website.git
synced 2025-09-04 21:33:53 -04:00
18 lines
301 B
Docker
18 lines
301 B
Docker
FROM node:14
|
|
|
|
# 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
|
|
|
|
# Bundle app source
|
|
COPY . .
|
|
|
|
EXPOSE 8090
|
|
|
|
CMD [ "npm", "start" ]
|